Function at 0x43b240
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x244
push ebx
push edi
push 0
mov dword [esp + 0x18], ecx
push 2
mov dword [esp + 0x10], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x18], ebx
je 0x43b4a4
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x43b2a2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
add esp, 0x244
ret 8
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [esp + 0x25c]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
cmp ecx, eax
je 0x43b488
mov edx, dword [esp + 0x258]
lea eax, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x43b488
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0043b4b0
test eax, eax
je 0x43b488
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
sub ecx, eax
sar ecx, 2
cmp ecx, 1
mov dword [esp + 0x10], edx
mov edi, eax
jae 0x43b3f8
mov edx, dword [esi + 4]
test edx, edx
je 0x43b32a
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x43b32f
mov ecx, 1
test edx, edx
jne 0x43b337
xor eax, eax
jmp 0x43b33c
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x14], eax
jge 0x43b348
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MFC42u.DLL_operatornew
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x18], eax
mov ebx, eax
je 0x43b379
push ebp
push ebx
call fcn.00453a10
add ebp, 4
add esp, 8
add ebx, 4
cmp ebp, edi
jne 0x43b365
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push 1
push ebx
call fcn.0042bec0
mov ecx, dword [esi + 8]
add ebx, 4
push ebx
push ecx
push edi
mov ecx, esi
call fcn.0040ea80
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.004146a0
mov ecx, dword [esi + 4]
push ecx
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add esp, 4
lea eax, [ecx + edx*4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x43b3dd
mov ebx, dword [esp + 0x20]
xor edx, edx
mov dword [esi + 4], ecx
lea edx, [ecx + edx*4 + 4]
mov dword [esi + 8], edx
jmp 0x43b488
mov edx, dword [esi + 8]
mov ebx, dword [esp + 0x20]
sub edx, eax
mov dword [esi + 4], ecx
sar edx, 2
lea edx, [ecx + edx*4 + 4]
mov dword [esi + 8], edx
jmp 0x43b488
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x43b446
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.0040ea80
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.0042bec0
mov eax, dword [esi + 8]
cmp edi, eax
je 0x43b484
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x43b437
jmp 0x43b484
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.0040ea80
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x43b470
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x43b461
lea eax, [edi + 4]
cmp edi, eax
je 0x43b484
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x43b477
add dword [esi + 8], 4
lea edx, [esp + 0x28]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x43b2b5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x244
ret 8