Function at 0x693c1a30
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0xac
mov eax, dword [eax + 0x10]
test eax, eax
je 0x693c1dc2
lea edi, [ebp - 0x6c]
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 - 0x6c], 0
call sym._K32EnumProcessModulesEx_20
mov esi, dword [ebp - 0x6c]
sub esp, 0x14
test esi, esi
je 0x693c1db8
mov edx, dword [sym.imp.ucrtbase.dll_calloc]
mov eax, esi
mov dword [esp + 4], 4
shr eax, 2
mov dword [ebp - 0x98], eax
mov dword [esp], eax
mov dword [ebp - 0x7c], edx
call edx
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x693c1dcc
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x7c]
mov dword [esp + 4], 0x148
mov dword [esp], eax
call edx
mov dword [ebx + 0x14], eax
test eax, eax
je 0x693c1dd6
mov eax, dword [ebp - 0x8c]
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 0x693c1c60
mov edx, dword [ebp - 0x98]
test edx, edx
je 0x693c1c60
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x7c], 0
mov esi, eax
lea eax, [eax + edi*4]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x80], eax
mov eax, dword [sym.imp.kernel32.dll_ReadProcessMemory]
mov dword [ebp - 0x84], eax
jmp 0x693c1b73
test byte [0x693d2018], 4
jne 0x693c1d00
add dword [ebp - 0x7c], 0x148
add esi, 4
cmp esi, dword [ebp - 0x88]
je 0x693c1c71
lea eax, [ebp - 0x64]
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 0x693c1b50
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x64]
mov dword [eax + ecx + 4], 0
mov dword [eax + ecx], edi
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x80]
mov dword [eax + ecx + 8], edx
add ecx, dword [ebx + 0x14]
xor eax, eax
mov dword [ebp - 0x90], ecx
mov ecx, 0x10
mov edx, dword [esi]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x80], eax
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], edx
mov dword [ebp - 0x94], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x84]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x40
call eax
mov edx, dword [ebp - 0x94]
sub esp, 0x14
cmp word [ebp - 0x58], 0x5a4d
je 0x693c1d40
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x90]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x7c]
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 0x693c1b5d
lea eax, [ebp - 0x58]
mov dword [ebp - 0x80], eax
mov eax, dword [sym.imp.kernel32.dll_ReadProcessMemory]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x80]
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 - 0x68], ax
lea eax, [ebp - 0x58]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], 0x40
mov dword [esp], eax
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], esi
call eax
sub esp, 0x14
cmp word [ebp - 0x58], 0x5a4d
je 0x693c1d80
movzx eax, word [ebp - 0x68]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x98]
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], 0x693d2018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x693c1b5d
lea eax, [ebp - 0x68]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
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 - 0x84]
call eax
sub esp, 0x14
jmp 0x693c1c1d
lea eax, [ebp - 0x68]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
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 - 0x84]
call eax
sub esp, 0x14
jmp 0x693c1cc3
mov eax, 0x80004005
jmp 0x693c1cf2
mov eax, 0x8000ffff
jmp 0x693c1cf2
mov eax, 0x8007000e
jmp 0x693c1cf2
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x693c1cf2