Function at 0x10017430
Capabilities:
Enumerate processes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10107ef7
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x10137920]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x10137920]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor edi, edi
push edi
push 2
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x100174cf
push 0x228
lea edx, [esp + 0x94]
push edi
push edx
call fcn.10066620
add esp, 0xc
lea eax, [esp + 0x8c]
push eax
push esi
mov dword [esp + 0x94], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, edi
jne 0x100174f5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.1006656c
mov esp, ebp
pop ebp
ret
push 0x18
mov dword [esp + 0x2c], edi
call fcn.100656b5
add esp, 4
cmp eax, edi
je 0x1001782f
mov dword [esp + 0x24], eax
mov dword [eax], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 8], eax
mov ecx, dword [esp + 0x24]
mov bl, 1
mov byte [ecx + 0x14], bl
mov edx, dword [esp + 0x24]
mov byte [edx + 0x15], bl
mov dword [esp + 0x2d0], edi
push 0x30
mov dword [esp + 0x3c], edi
call fcn.100656b5
add esp, 4
cmp eax, edi
je 0x10017806
mov dword [esp + 0x34], eax
mov dword [eax], eax
mov eax, dword [esp + 0x34]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x34]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x34]
mov byte [eax + 0x2c], bl
mov ecx, dword [esp + 0x34]
mov byte [ecx + 0x2d], bl
mov byte [esp + 0x2d0], bl
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0xa4]
lea edi, [esp + 0x18]
lea esi, [esp + 0x20]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.10018f60
mov ecx, esi
push eax
push ecx
lea esi, [esp + 0x48]
call fcn.10018890
mov edx, dword [esp + 0x94]
xor eax, eax
mov word [esp + 0x70], ax
lea eax, [esp + 0xb0]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100175d7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x78]
call fcn.1000abb0
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x30]
mov byte [esp + 0x2d0], 2
call fcn.10018fd0
lea edx, [esp + 0x30]
push edx
mov ebx, eax
lea esi, [esp + 0x58]
call fcn.10018960
mov byte [esp + 0x2d0], 1
cmp dword [esp + 0x84], 8
jb 0x1001763c
mov eax, dword [esp + 0x70]
push eax
call fcn.10065453
add esp, 4
push 0x22c
lea ecx, [esp + 0x90]
push 0
push ecx
call fcn.10066620
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x8c]
push edx
push eax
mov dword [esp + 0x94], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10017575
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x14]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.10017a70
mov ebx, dword [eax]
cmp ebx, dword [esp + 0x24]
jne 0x10017703
mov byte [esp + 0x2d0], 3
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.10017e40
mov edx, dword [esp + 0x34]
push edx
call fcn.10065453
add esp, 4
mov dword [esp + 0x2d0], 4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea esi, [esp + 0x20]
lea eax, [esp + 0x28]
call fcn.10017da0
mov eax, dword [esp + 0x24]
push eax
call fcn.10065453
add esp, 4
jmp 0x100174cf
lea esi, [ebx + 0x10]
push esi
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 0x38]
call fcn.10017f00
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
lea edi, [esp + 0x20]
mov dword [esp + 0x20], 0
call fcn.100190b0
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x10017779
mov byte [esp + 0x2d0], 5
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.10017e40
mov edx, dword [esp + 0x34]
push edx
call fcn.10065453
add esp, 4
mov dword [esp + 0x2d0], 6
jmp 0x100176dc
add ebx, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
call fcn.10017ad0
mov eax, dword [eax]
mov ecx, dword [esp + 0x50]
push 0xffffffffffffffff
add eax, 0x10
push 0
push eax
call fcn.1000b050
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x100177a8
mov ecx, dword [esi]
mov dword [eax], ecx
mov byte [esp + 0x2d0], 7
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x38]
call fcn.10017e40
mov edx, dword [esp + 0x34]
push edx
call fcn.10065453
add esp, 4
mov dword [esp + 0x2d0], 8
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea esi, [esp + 0x20]
lea eax, [esp + 0x28]
call fcn.10017da0
mov eax, dword [esp + 0x24]
push eax
call fcn.10065453
add esp, 4
mov al, 1
jmp 0x100174d1
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x4c], edi
call fcn.100657f8
push 0x1012dcb8
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x68], vtable.std::bad_alloc.0
call fcn.1006613c
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x1c], edi
call fcn.100657f8
push 0x1012dcb8
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], vtable.std::bad_alloc.0
call fcn.1006613c
int3