Function at 0x4045f0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x457d5e
mov eax, dword fs:[0]
push eax
mov eax, 0x1824
call fcn.00443f40
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 0x1820], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x1838]
mov dword fs:[0], eax
xor ebx, ebx
push 0x4622b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1844], ebx
call fcn.00402680
mov byte [esp + 0x1840], 1
mov esi, dword [esp + 0x1848]
add esi, 0xfffffff0
push esi
mov dword [esp + 0x2c], esi
call fcn.00402ac0
lea ebp, [eax + 0x10]
mov dword [esp + 0x30], ebp
push 0x7fe
lea eax, [esp + 0x103e]
push ebx
mov byte [esp + 0x184c], 2
push eax
mov dword [esp + 0x28], ebx
mov word [esp + 0x1044], bx
call fcn.004406c0
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0x1000
lea edx, [esp + 0x3c]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x404721
lea eax, [ebp - 0x10]
mov byte [esp + 0x1840], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1840], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1840], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40471a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
jmp 0x40485b
mov eax, dword [esp + 0x1c]
shr eax, 2
mov dword [esp + 0x20], eax
mov edi, ebx
je 0x4047e8
mov eax, dword [esp + edi*4 + 0x34]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4047d0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4047d0
mov eax, dword [esp + 0x24]
push 0x800
lea edx, [esp + 0x1038]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [esp + 0x1034]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404787
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1038]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004029b0
cmp ebp, ebx
je 0x4047d0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jl 0x4047d0
push ebp
push eax
call fcn.0043f97a
add esp, 8
cmp eax, ebx
je 0x4047d0
sub eax, dword [esp + 0x14]
sar eax, 1
js 0x4047d0
add dword [esp + 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, dword [esp + 0x20]
jb 0x404734
mov esi, dword [esp + 0x28]
lea eax, [ebp - 0x10]
mov byte [esp + 0x1840], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40480c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1840], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404833
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1840], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404857
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1838]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1820]
xor ecx, esp
call fcn.0043e923
add esp, 0x1830
ret 4