Function at 0x452030
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x664], ecx
mov dword [ebp - 0x678], edi
mov dword [ebp - 0x674], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x660], ebx
cmp ebx, 0xffffffff
jne 0x452089
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi], 0
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
mov dword [ebp - 0x658], 0x22c
mov dword [ebp - 0x42c], 0x428
call edx
lea esi, [eax + 0x10]
push 0x556338
push edi
mov dword [ebp - 0x65c], esi
call fcn.004fe4a9
mov ecx, dword [ebp - 0x664]
add esp, 8
neg eax
sbb edi, edi
neg edi
mov dword [ebp - 0x668], 0
call fcn.0044e610
mov dword [ebp - 0x66c], eax
lea eax, [ebp - 0x658]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x452272
nop
test edi, edi
je 0x4521e4
cmp dword [ebp - 0x66c], 2
jne 0x4521b6
mov ecx, dword [ebp - 0x650]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4522ae
lea edx, [ebp - 0x42c]
push edx
push ebx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4521a4
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, 0x104
or eax, ecx
jge 0x45216a
push 0x104
lea ecx, [ebp - 0x65c]
call fcn.00403d60
mov esi, dword [ebp - 0x65c]
push 0x104
push esi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.005025f8
add esp, 8
test eax, eax
js 0x4522cb
cmp eax, dword [esi - 8]
jg 0x4522cb
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x660]
jmp 0x452239
lea eax, [ebp - 0x634]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4521c0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x634]
push edx
lea ecx, [ebp - 0x65c]
call fcn.00403ee0
jmp 0x452233
push ecx
lea eax, [ebp - 0x634]
mov ecx, esp
push eax
call fcn.0042ad10
lea ecx, [ebp - 0x670]
push ecx
mov ecx, dword [ebp - 0x664]
call fcn.0044fdd0
push eax
lea ecx, [ebp - 0x65c]
call fcn.00423fc0
mov eax, dword [ebp - 0x670]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x452233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x65c]
mov eax, dword [ebp - 0x678]
test eax, eax
je 0x4522d5
push eax
push esi
call fcn.004fe94a
add esp, 8
test eax, eax
jne 0x4522b4
mov eax, dword [ebp - 0x650]
cmp eax, dword [ebp + 0xc]
je 0x4522b4
mov edx, dword [ebp - 0x674]
mov dword [edx], eax
mov dword [ebp - 0x668], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452295
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x668]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp - 0x660]
lea ecx, [ebp - 0x658]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x452100
jmp 0x452272
push 0x80070057
call fcn.00404190
push 0x80004005
call fcn.00404190
int3