Function at 0x4052f0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x51fc09
mov eax, dword fs:[0]
push eax
mov eax, 0x1224
call fcn.004df6e0
mov eax, dword [0x5c5c30]
xor eax, esp
mov dword [esp + 0x1220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c5c30]
xor eax, esp
push eax
lea eax, [esp + 0x1238]
mov dword fs:[0], eax
xor ebx, ebx
push str..exe
lea edi, [esp + 0x124c]
mov dword [esp + 0x1244], ebx
call fcn.0040afb0
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040b0f0
add esp, 0xc
mov byte [esp + 0x1240], 1
mov ecx, dword [eax]
mov esi, dword [esp + 0x1248]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4053ac
cmp dword [esi + 0xc], ebx
jl 0x40539b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40539b
push eax
call fcn.0040c900
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00401380
add edi, 0x10
mov dword [esp + 0x1248], edi
jmp 0x4053ac
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1250]
call fcn.0040c800
mov byte [esp + 0x1240], bl
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jne 0x4053df
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x4053df
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4053f5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x20]
push ecx
push 0x1000
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x24], ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x405468
mov dword [esp + 0x1240], 0xffffffff
mov esi, dword [esp + 0x1248]
add esi, 0xfffffff0
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jne 0x40544b
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x40544b
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x405461
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
jmp 0x4056f5
mov edi, dword [esp + 0x20]
shr edi, 2
mov esi, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], esi
je 0x4056a1
nop
mov eax, dword [0x5a9d00]
mov ecx, dword [str._unknown_]
mov edx, dword [0x5a9cfc]
push 0x1f4
mov dword [esp + 0x1038], eax
mov dword [esp + 0x1030], ecx
mov ecx, dword [0x5a9d04]
mov dword [esp + 0x1034], edx
mov edx, dword [0x5a9d08]
lea eax, [esp + 0x1044]
push ebx
push eax
mov dword [esp + 0x1044], ecx
mov dword [esp + 0x1048], edx
call fcn.004db5b0
mov ecx, dword [esp + esi*4 + 0x38]
add esp, 0xc
push ecx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
cmp ebp, ebx
je 0x405692
push 0x208
lea edx, [esp + 0x1030]
push edx
push ebx
push ebp
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jbe 0x40568b
lea eax, [esp + 0x102c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040ac70
mov byte [esp + 0x1240], 2
mov ecx, dword [esp + 0x14]
push 0x5c
push ecx
call fcn.004d1550
add esp, 8
cmp eax, ebx
je 0x405544
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
jne 0x405560
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1240], bl
call fcn.0040ad40
jmp 0x405692
add eax, 1
push eax
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040b010
mov byte [esp + 0x1240], 3
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4055be
cmp dword [esi + 0xc], ebx
jl 0x4055b0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4055b0
push eax
call fcn.0040c900
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00401380
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x4055be
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040c800
lea ecx, [esp + 0x28]
mov byte [esp + 0x1240], 2
call fcn.0040ad40
lea edi, [esp + 0x14]
call fcn.0040afb0
mov edx, dword [eax]
mov ecx, dword [esp + 0x14]
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x405620
cmp dword [esi + 0xc], ebx
jl 0x40560e
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40560e
push eax
call fcn.0040c900
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00401380
lea ecx, [edi + 0x10]
mov dword [esp + 0x14], ecx
jmp 0x405620
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c800
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1248]
cmp eax, ebx
jne 0x40564d
push str.AtlIsValidString__pszSub__
push ebx
push 0x6b0
push 0x5a8100
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x405673
int3
cmp dword [ecx - 0xc], ebx
jl 0x405673
push eax
push ecx
call fcn.004d4250
add esp, 8
cmp eax, ebx
je 0x405673
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x405673
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x1240], bl
call fcn.0040ad40
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 1
cmp esi, edi
mov dword [esp + 0x1c], esi
jb 0x405480
mov dword [esp + 0x1240], 0xffffffff
mov esi, dword [esp + 0x1248]
add esi, 0xfffffff0
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jne 0x4056db
push str.nRefs___0
push ebx
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x4056db
int3
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x4056f1
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 + 0x1238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1220]
xor ecx, esp
call fcn.004d1610
add esp, 0x1230
ret 4