Function at 0x40b1c0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4cf8bc
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 2
mov edi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x40b219
xor eax, eax
jmp 0x40b53e
lea eax, [esp + 0x40]
push eax
call fcn.00466230
mov dword [esp + 0x2c0], ebx
cmp dword [edi + 0x18], 0x10
jb 0x40b235
mov edi, dword [edi + 4]
jmp 0x40b238
add edi, 4
push edi
lea ecx, [esp + 0x24]
call fcn.0040b620
push 0x228
lea ecx, [esp + 0x8c]
push ebx
push ecx
mov byte [esp + 0x2cc], 1
mov dword [esp + 0x48], ebx
call fcn.004a0bd0
add esp, 0xc
lea edx, [esp + 0x84]
push edx
push esi
mov dword [esp + 0x8c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40b324
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xa8]
push eax
push ecx
call fcn.004a2283
add esp, 8
test eax, eax
jne 0x40b30e
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0x40]
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x64]
push eax
lea edi, [esp + 0x48]
call fcn.00438e80
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x40b2c8
cmp eax, ebx
je 0x40b2cd
call fcn.004a0da7
lea ebx, [esp + 0x40]
cmp dword [esi + 4], ebp
je 0x40b2f7
lea ecx, [esp + 0x9c]
push ecx
call fcn.0040bb50
mov esi, dword [eax]
lea edx, [esp + 0x9c]
push edx
inc esi
call fcn.0040bb50
mov dword [eax], esi
jmp 0x40b30a
lea eax, [esp + 0x9c]
push eax
call fcn.0040bb50
mov dword [eax], 1
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x84]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b285
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x5c], 0
je 0x40b4d6
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.0040df60
mov byte [esp + 0x2c0], 2
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x18], 0
mov ebx, eax
cmp ecx, eax
jbe 0x40b376
call fcn.004a0da7
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov edi, ecx
cmp ecx, eax
jbe 0x40b385
call fcn.004a0da7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push ebx
push esi
push edi
push eax
push ecx
call fcn.0040dfe0
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
add esp, 0x14
cmp esi, eax
jbe 0x40b3af
call fcn.004a0da7
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x24]
mov ebx, esi
xor edx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], dx
mov byte [esp + 0x2c0], 3
nop
mov esi, eax
cmp dword [esp + 0x30], eax
jbe 0x40b3ed
call fcn.004a0da7
test ebp, ebp
je 0x40b3f7
cmp ebp, dword [esp + 0x24]
je 0x40b3fc
call fcn.004a0da7
cmp ebx, esi
je 0x40b495
test ebp, ebp
jne 0x40b476
call fcn.004a0da7
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40b419
call fcn.004a0da7
mov ecx, dword [ebx]
lea edi, [esp + 0x68]
call fcn.0040ae50
lea ecx, [esp + 0x20]
call fcn.00404fb0
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b434
sub eax, esi
sar eax, 1
push eax
push 0
push edx
lea ecx, [esp + 0x74]
call fcn.0040bda0
cmp eax, 0xffffffff
jne 0x40b480
test ebp, ebp
jne 0x40b47b
call fcn.004a0da7
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40b46a
call fcn.004a0da7
mov eax, dword [esp + 0x34]
add ebx, 8
jmp 0x40b3e0
mov eax, dword [ebp]
jmp 0x40b40f
mov eax, dword [ebp]
jmp 0x40b460
lea esi, [esp + 0x18]
mov dword [esp + 0x1c], ebx
call fcn.00432a90
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
jmp 0x40b499
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x68]
call fcn.004050c0
mov byte [esp + 0x2c0], 1
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
je 0x40b4bd
push eax
call fcn.0049c830
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.0049c830
add esp, 4
mov edx, dword [esp + 0x3c]
push edx
xor edi, edi
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40b4ff
mov ecx, esi
call fcn.0040b0d0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x2c0], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x2c4], 0xffffffff
call fcn.0040bc00
mov eax, edi
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.004a0e91
add esp, 0x2b0
ret