Function at 0x407140
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4163f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
mov eax, dword [0x41b3c0]
xor eax, dword [ebp + 4]
xor ecx, ecx
mov dword [esp + 0x250], eax
mov eax, dword [ebp + 0x10]
mov cx, word [eax + 0xc]
push ebx
push esi
push edi
push ecx
call sub.WS2_32.dll_ntohs
movzx edx, ax
mov al, byte [esp + 0xf]
mov byte [esp + 0x4c], al
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0x10], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov cl, byte [esp + 0xf]
mov dword [esp + 0x26c], ebx
mov byte [esp + 0x68], cl
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov esi, dword [ebp + 8]
push esi
push ebx
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x1e8]
push 0x410
mov byte [esp + 0x278], 1
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x4072b1
lea edx, [esp + 0xd8]
push edx
push 0x28
lea eax, [esp + 0x1c0]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4072aa
mov edx, dword [esp + 0x1b8]
push 0x78
lea ecx, [esp + 0x1e4]
push ecx
push edx
push edi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x407294
lea eax, [esp + 0x1e0]
push eax
lea ecx, [esp + 0xa4]
call fcn.00403860
mov ecx, dword [esp + 0xb4]
add ecx, 0xfffffffc
push 4
push ecx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x274], 2
call fcn.00402790
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x58]
call fcn.00402b30
cmp dword [esp + 0xb8], 0x10
mov byte [esp + 0x26c], 1
jb 0x407294
mov edx, dword [esp + 0xa4]
push edx
call fcn.004099a0
add esp, 4
cmp dword [0x41bdf8], ebx
je 0x4072aa
lea eax, [esp + 0x68]
push esi
push eax
call fcn.00404e30
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 8
jne 0x4072c9
mov eax, str.System
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4072c0
jmp 0x4072dd
cmp esi, 2
jne 0x4072ee
mov eax, str.System
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4072d6
sub eax, edx
push eax
lea ecx, [esp + 0x50]
push str.System
call fcn.00402c40
mov edx, dword [esp + 0x10]
push 0xa
lea ecx, [esp + 0xc8]
push ecx
push edx
call fcn.00414c96
mov al, byte [esp + 0x1b]
mov byte [esp + 0x20], al
mov esi, 0xf
lea eax, [esp + 0xd0]
add esp, 0xc
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407328
sub eax, edx
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402c40
mov dl, byte [esp + 0xf]
lea eax, [esp + 0xc4]
mov byte [esp + 0x84], dl
mov byte [esp + 0x26c], 3
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407375
sub eax, edx
push eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x8c]
call fcn.00402c40
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x278], 4
call fcn.00404d20
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x278], 5
call fcn.00402b30
cmp dword [esp + 0xb8], 0x10
mov byte [esp + 0x26c], 4
jb 0x4073ec
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.004099a0
add esp, 4
mov edi, dword [ebp + 0xc]
mov dl, byte [esp + 0xf]
mov eax, edi
mov dword [esp + 0x48], esi
mov byte [esp + 0x30], dl
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407408
sub eax, esi
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.00402c40
mov al, byte [esp + 0x68]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xdc], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
mov esi, 0xf
mov byte [ecx], al
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x294], 6
mov byte [ecx + 4], bl
call fcn.00402b30
mov al, byte [esp + 0x68]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xf4], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
mov byte [ecx], al
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x2b0], 7
mov byte [ecx + 4], bl
call fcn.00402b30
mov al, byte [esp + 0x68]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x130], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
mov byte [ecx], al
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x2cc], 8
mov byte [ecx + 4], bl
call fcn.00402b30
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea ecx, [esp + 0x13c]
mov byte [esp + 0x2c8], 6
call fcn.00403750
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x148]
mov byte [esp + 0x274], 9
call fcn.00405130
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x41bdfc
mov byte [esp + 0x270], 0xa
call fcn.00406970
mov edx, dword [esp + 0xe0]
mov esi, eax
push 0xffffffffffffffff
mov dword [esi], edx
mov eax, dword [esp + 0xe8]
push ebx
lea ecx, [esp + 0xf0]
mov dword [esi + 4], eax
push ecx
lea ecx, [esi + 8]
call fcn.00402b30
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x10c]
push edx
lea ecx, [esi + 0x24]
call fcn.00402b30
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x128]
push eax
lea ecx, [esi + 0x40]
call fcn.00402b30
lea ecx, [esp + 0x15c]
call fcn.00401df0
mov eax, dword [esp + 0x158]
mov esi, 0x10
cmp eax, esi
jb 0x407589
mov ecx, dword [esp + 0x144]
push ecx
call fcn.004099a0
add esp, 4
mov edi, 0xf
lea ecx, [esp + 0xe0]
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
call fcn.00401df0
cmp dword [esp + 0x48], esi
jb 0x4075c2
mov edx, dword [esp + 0x34]
push edx
call fcn.004099a0
add esp, 4
cmp dword [esp + 0x9c], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x4075e7
mov eax, dword [esp + 0x88]
push eax
call fcn.004099a0
add esp, 4
cmp dword [esp + 0x2c], esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x40760f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004099a0
add esp, 4
cmp dword [esp + 0x80], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x407631
mov edx, dword [esp + 0x6c]
push edx
call fcn.004099a0
add esp, 4
cmp dword [esp + 0x64], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x407653
mov eax, dword [esp + 0x50]
push eax
call fcn.004099a0
add esp, 4
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x25c]
xor ecx, dword [ebp + 4]
call fcn.0040e242
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret