Function at 0x10001a30
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x88
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10001d67
lea edi, [ebp - 0x60]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x60], 0
call sym._K32EnumProcessModulesEx_20
mov esi, dword [ebp - 0x60]
sub esp, 0x14
test esi, esi
je 0x10001d5d
mov edx, dword [sym.imp.ucrtbase.dll_calloc]
mov eax, esi
mov dword [esp + 4], 4
shr eax, 2
mov dword [ebp - 0x80], eax
mov dword [esp], eax
mov dword [ebp - 0x64], edx
call edx
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10001d71
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x64]
mov dword [esp + 4], 0x148
mov dword [esp], eax
call edx
mov dword [ebx + 0x14], eax
test eax, eax
je 0x10001d7b
mov eax, dword [ebp - 0x74]
and esi, 0xfffffffc
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], esi
mov dword [esp], eax
call sym._K32EnumProcessModulesEx_20
sub esp, 0x14
test eax, eax
je 0x10001c28
mov edx, dword [ebp - 0x80]
test edx, edx
je 0x10001c28
mov eax, dword [ebp - 0x74]
mov edi, dword [ebp - 0x80]
mov dword [ebp - 0x64], 0
mov esi, eax
lea eax, [eax + edi*4]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x68], eax
mov eax, dword [sym.imp.kernel32.dll_ReadProcessMemory]
mov dword [ebp - 0x6c], eax
jmp 0x10001b50
test byte [0x10012018], 4
jne 0x10001cb8
add dword [ebp - 0x64], 0x148
add esi, 4
cmp esi, dword [ebp - 0x70]
je 0x10001c36
lea eax, [ebp - 0x58]
mov dword [esp + 0xc], 0xc
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._K32GetModuleInformation_16
sub esp, 0x10
test eax, eax
je 0x10001b30
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x58]
mov dword [eax + ecx + 4], 0
mov dword [eax + ecx], edi
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x68]
mov dword [eax + ecx + 8], edx
add ecx, dword [ebx + 0x14]
xor eax, eax
mov dword [ebp - 0x78], ecx
mov ecx, 0x10
mov edx, dword [esi]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], eax
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], edx
mov dword [ebp - 0x7c], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40
call eax
mov edx, dword [ebp - 0x7c]
sub esp, 0x14
cmp word [ebp - 0x4c], 0x5a4d
je 0x10001cf0
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x78]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x64]
add eax, dword [ebx + 0x14]
mov dword [esp + 0xc], 0x104
add eax, 0x40
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._K32GetModuleFileNameExA_16
sub esp, 0x10
jmp 0x10001b3d
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x68], eax
mov eax, dword [sym.imp.kernel32.dll_ReadProcessMemory]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x74]
mov edi, dword [ebp - 0x68]
mov ecx, 0x10
mov esi, dword [eax]
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x10], 0
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], 0x40
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 4], esi
call eax
sub esp, 0x14
cmp word [ebp - 0x4c], 0x5a4d
je 0x10001d28
movzx eax, word [ebp - 0x5c]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x80]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 1
mov dword [ebx + 0x18], eax
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Failed_to_get_module_information__error__ld._n
mov dword [esp + 8], str.debug_target_init_modules_info
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10012018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001b3d
lea eax, [ebp - 0x5c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 4
lea eax, [edx + eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
call eax
sub esp, 0x14
jmp 0x10001bee
lea eax, [ebp - 0x5c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 2
lea eax, [esi + eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
call eax
sub esp, 0x14
jmp 0x10001c82
mov eax, 0x80004005
jmp 0x10001cab
mov eax, 0x8000ffff
jmp 0x10001cab
mov eax, 0x8007000e
jmp 0x10001cab
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x10001cab