(ql: Qiling, address: int, params)
| 175 | return iat.get(procname or ordinal, 0) |
| 176 | |
| 177 | def _LoadLibrary(ql: Qiling, address: int, params): |
| 178 | lpLibFileName = params["lpLibFileName"] |
| 179 | |
| 180 | # TODO: this searches only by basename; do we need to search by full path as well? |
| 181 | dll = ql.loader.get_image_by_name(lpLibFileName, casefold=True) |
| 182 | |
| 183 | if dll is not None: |
| 184 | return dll.base |
| 185 | |
| 186 | return ql.loader.load_dll(lpLibFileName) |
| 187 | |
| 188 | def _LoadLibraryEx(ql: Qiling, address: int, params): |
| 189 | lpLibFileName = params["lpLibFileName"] |
no test coverage detected