Function at 0x451d80
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 + 0xc]
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 0x451dd9
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 8
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 0x451fbd
nop
test edi, edi
je 0x451f34
cmp dword [ebp - 0x66c], 2
jne 0x451f06
mov ecx, dword [ebp - 0x650]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x451ff9
lea edx, [ebp - 0x42c]
push edx
push ebx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x451ef4
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, 0x104
or eax, ecx
jge 0x451eba
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 0x452016
cmp eax, dword [esi - 8]
jg 0x452016
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 0x451f89
lea eax, [ebp - 0x634]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451f10
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x634]
push edx
lea ecx, [ebp - 0x65c]
call fcn.00403ee0
jmp 0x451f83
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 0x451f83
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 0x452020
push eax
push esi
call fcn.004fe94a
add esp, 8
test eax, eax
jne 0x451fff
mov edx, dword [ebp - 0x650]
mov eax, dword [ebp - 0x674]
mov dword [eax], edx
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 0x451fe0
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 8
mov ebx, dword [ebp - 0x660]
lea ecx, [ebp - 0x658]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x451e50
jmp 0x451fbd
push 0x80070057
call fcn.00404190
push 0x80004005
call fcn.00404190
int3