Function at 0x4029a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405351
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x409034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
mov edi, 0x406510
mov dword [ebp - 0x23c], 0x22c
call sub.MSVCR100.dll_memset
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
mov ecx, edi
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x402a3d
movzx edi, di
push edi
call fcn.00401fd0
add esp, 4
test eax, eax
je 0x402a58
push eax
mov eax, edi
lea edi, [ebp - 0x240]
call fcn.00401ef0
jmp 0x402a52
push 0x406510
mov edi, 0xd
lea ebx, [ebp - 0x240]
call fcn.00401cf0
mov esi, dword [ebp - 0x240]
mov ecx, 1
mov dword [ebp - 4], ecx
mov edi, dword [esi - 0xc]
test edi, edi
jns 0x402a71
push 0x80070057
call fcn.004021d0
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x402a90
mov eax, edi
lea ecx, [ebp - 0x240]
call fcn.00401e20
mov esi, dword [ebp - 0x240]
lea edx, [edi + 1]
push edx
push esi
call dword [sym.imp.MSVCR100.dll__wcslwr_s]
add esp, 8
cmp edi, dword [esi - 8]
jg 0x402a67
xor eax, eax
push eax
mov dword [esi - 0xc], edi
push 2
mov word [esi + edi*2], ax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x248], eax
cmp eax, 0xffffffff
jne 0x402ae6
mov dword [ebp - 4], eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402adf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x402c70
lea ecx, [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edx, dword [section..data]
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, section..data
mov dword [ebp - 0x24c], 0
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x244], ebx
mov byte [ebp - 4], 2
test edi, edi
je 0x402c1a
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b30
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x218]
push ecx
mov edi, eax
lea ebx, [ebp - 0x244]
call fcn.00401cf0
mov ebx, dword [ebp - 0x244]
mov edi, dword [ebx - 0xc]
test edi, edi
js 0x402a67
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x402b88
mov eax, edi
lea ecx, [ebp - 0x244]
call fcn.00401e20
mov ebx, dword [ebp - 0x244]
lea edx, [edi + 1]
push edx
push ebx
call dword [sym.imp.MSVCR100.dll__wcslwr_s]
add esp, 8
cmp edi, dword [ebx - 8]
jg 0x402a67
xor eax, eax
mov dword [ebx - 0xc], edi
mov word [ebx + edi*2], ax
mov ecx, ebx
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402bd6
test dx, dx
je 0x402bd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402bd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x402bb0
xor eax, eax
jmp 0x402bdb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x402bf2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x234]
jne 0x402c10
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x23c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402b25
jmp 0x402c1a
mov dword [ebp - 0x24c], 1
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404834
mov esp, ebp
pop ebp
ret