Function at 0x40dac0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d551
mov eax, dword fs:[0]
push eax
mov eax, 0x115c
call fcn.0041ac10
mov eax, dword [0x4242c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x1134], esi
push 0x30
mov dword [ebp - 0x1144], ebx
mov dword [ebp - 0x1120], esi
call fcn.00410f61
add esp, 4
cmp eax, esi
je 0x40ddf1
mov dword [ebp - 0x1124], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x1124]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x1124]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x1124]
mov byte [eax + 0x2c], 1
mov ecx, dword [ebp - 0x1124]
mov byte [ecx + 0x2d], 1
mov dword [ebp - 4], 1
call fcn.0040da20
lea edx, [ebp - 0x114c]
push edx
push 0x1000
lea eax, [ebp - 0x1118]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40dbd6
push ebx
lea edi, [ebp - 0x1128]
call fcn.0040e320
mov dword [ebp - 0x1134], 1
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1124]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x1138]
lea esi, [ebp - 0x1128]
call fcn.0040e410
mov ecx, dword [ebp - 0x1124]
push ecx
call fcn.0041095e
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410969
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x114c]
shr ecx, 2
xor eax, eax
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1130], eax
cmp ecx, esi
jbe 0x40dcfc
jmp 0x40dc00
mov edi, dword [ebp + eax*4 - 0x1118]
cmp edi, esi
je 0x40dced
cmp edi, 4
je 0x40dced
mov edx, dword [str._unknown_]
mov eax, dword [0x420ffc]
mov cx, word [0x421000]
push 0xfa
mov dword [ebp - 0x118], edx
lea edx, [ebp - 0x10e]
push esi
push edx
mov dword [ebp - 0x114], eax
mov word [ebp - 0x110], cx
call fcn.00415000
add esp, 0xc
push edi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40dca1
lea eax, [ebp - 0x113c]
push eax
push 4
lea ecx, [ebp - 0x1148]
push ecx
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40dc9a
mov eax, dword [ebp - 0x1148]
push 0x104
lea edx, [ebp - 0x118]
push edx
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x1140]
lea ebx, [ebp - 0x1128]
mov dword [ebp - 0x1140], edi
call fcn.0040e210
mov esi, eax
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dcc3
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x118]
call fcn.0040b880
mov ebx, dword [ebp - 0x1144]
mov ecx, dword [ebp - 0x112c]
mov eax, dword [ebp - 0x1130]
xor esi, esi
inc eax
mov dword [ebp - 0x1130], eax
cmp eax, ecx
jb 0x40dc00
push 0x30
mov dword [ebx + 8], esi
call fcn.00410f61
add esp, 4
cmp eax, esi
je 0x40ddbe
mov dword [ebx + 4], eax
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov ecx, dword [ebx + 4]
mov byte [ecx + 0x2c], 1
mov edx, dword [ebx + 4]
mov byte [edx + 0x2d], 1
lea eax, [ebp - 0x1128]
mov byte [ebp - 4], 3
cmp ebx, eax
je 0x40dd86
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 4]
push edx
mov ecx, ebx
call fcn.0040e7b0
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x1124]
mov edx, dword [ebp - 0x1120]
mov dword [ebx + 8], esi
mov eax, dword [ebx + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x1124], eax
mov dword [ebx + 8], edx
mov dword [ebp - 0x1120], ecx
jmp 0x40dd8c
mov eax, dword [ebp - 0x1124]
mov dword [ebp - 0x1134], 1
mov dword [ebp - 4], 4
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x113c]
lea esi, [ebp - 0x1128]
call fcn.0040e410
mov eax, dword [ebp - 0x1124]
push eax
jmp 0x40dbb0
lea ecx, [ebp - 0x112c]
push ecx
lea ecx, [ebp - 0x1164]
mov dword [ebp - 0x112c], esi
call fcn.00410b06
push 0x4220fc
lea edx, [ebp - 0x1164]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004118c2
lea eax, [ebp - 0x1138]
push eax
lea ecx, [ebp - 0x1158]
mov dword [ebp - 0x1138], esi
call fcn.00410b06
push 0x4220fc
lea ecx, [ebp - 0x1158]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004118c2
int3