Function at 0x403f30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489e41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x660
mov eax, dword [0x4a9198]
push ebx
push esi
push edi
push 0x48efa0
push 0x48ef98
mov dword [esp + 0x66c], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
mov dword [fcn.004aa1c0], eax
je 0x4042d7
xor eax, eax
mov word [esp + 0x458], bx
mov ecx, 0x81
lea edi, [esp + 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x45c]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
call fcn.0047c701
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0x1c]
push 0x48ef2c
push ecx
mov dword [esp + 0x680], ebx
call fcn.00402db0
add esp, 0xc
call fcn.0047c701
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov word [esp + 0x250], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x252]
rep stosd dword es:[edi], eax
push ebx
push 2
stosw word es:[edi], ax
mov dword [esp + 0x18], 0xffffffff
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov edx, eax
mov dword [esp + 0x10], edx
xor eax, eax
mov dword [esp + 0x20], 0x22c
mov ecx, 0x8a
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x67c], 2
call sub.kernel32.dll_Process32FirstW
cmp eax, ebx
je 0x404178
cmp dword [esp + 0x28], ebx
jne 0x40408c
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
call sub.kernel32.dll_Process32NextW
cmp eax, ebx
je 0x404178
cmp dword [esp + 0x28], ebx
jne 0x40408c
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00403550
cmp eax, ebx
je 0x404178
jmp 0x4040a0
mov edx, dword [esp + 0x28]
push 0x208
lea ecx, [esp + 0x254]
push ecx
push edx
call fcn.00403580
add esp, 0xc
test eax, eax
je 0x404149
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x20]
push 0x48ef2c
push ecx
call fcn.00402db0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov esi, dword [esp + 0x28]
add esp, 0xc
cmp eax, ebx
je 0x404139
cmp dword [esi - 0xc], ebx
jl 0x404139
push eax
push esi
call fcn.0046a7bd
add esp, 8
cmp eax, ebx
je 0x404139
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x404139
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x40421b
cmp dword [esi - 0xc], ebx
jl 0x40421b
push edi
push esi
call fcn.0046a7bd
add esp, 8
cmp eax, ebx
je 0x40421b
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40421b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call sub.kernel32.dll_Process32NextW
cmp eax, ebx
je 0x404178
cmp dword [esp + 0x28], ebx
jne 0x404170
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
call fcn.00403550
cmp eax, ebx
jne 0x4040a0
mov edi, dword [ebp + 8]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00403d30
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.00403790
add esp, 0x10
test al, al
jne 0x404251
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4041ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4041ca
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x674], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x674], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404214
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
jmp 0x4042d9
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40422b
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x674], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40424c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
jmp 0x4041f2
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00403790
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40427d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40428d
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x674], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x674], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [esp + 0x66c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x664]
call fcn.0046a6a2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret