Function at 0x46f800
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x54], ecx
mov eax, dword [edx]
test eax, eax
je 0x46f867
mov esi, edx
lea edi, [esp + 8]
add esi, 4
nop word [eax + eax]
mov ecx, edi
push eax
call fcn.0041cd20
mov ecx, edi
push 0x516598
call fcn.0041cd20
mov eax, dword [esi]
add esi, 4
test eax, eax
jne 0x46f840
mov cl, byte [esp + 8]
mov eax, dword [esp + 0xc]
jmp 0x46f86b
xor eax, eax
xor ecx, ecx
mov edx, ecx
mov esi, dword [ebp + 8]
shr dl, 1
test cl, 1
lea ecx, [esp + 0x78]
movzx edx, dl
cmovne edx, eax
lea eax, [esp + 8]
dec edx
push eax
push edx
push 0
push eax
call fcn.0041c460
test byte [esp + 8], 1
jne 0x46f89e
mov word [esp + 8], 0
jmp 0x46f8c8
mov eax, dword [esp + 0x10]
mov byte [eax], 0
mov dword [esp + 0xc], 0
test byte [esp + 8], 1
je 0x46f8c8
push dword [esp + 0x10]
call fcn.00416a20
add esp, 4
mov dword [esp + 8], 0
movsd xmm0, qword [esp + 0x78]
mov eax, dword [esp + 0x80]
test esi, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0x78], 0x44
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
movaps xmmword [esp + 0x60], xmm0
je 0x46fb5b
mov edi, dword [esi]
test edi, edi
je 0x46fb5b
add esi, 4
jmp 0x46f9ed
mov edi, dword [esi]
add esi, 4
test edi, edi
je 0x46fb6c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x46fcb0
mov ebx, eax
cmp eax, 0xb
mov dword [esp + 0x5c], edi
jae 0x46fa40
mov eax, ebx
lea edi, [esp + 0x29]
add al, bl
test ebx, ebx
mov byte [esp + 0x28], al
jne 0x46fa6a
jmp 0x46fa78
mov dword [esp + 0x58], esi
mov esi, ebx
add esi, 0x10
and esi, 0xfffffff0
push esi
call fcn.00416880
add esp, 4
or esi, 1
mov dword [esp + 0x30], eax
mov edi, eax
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x2c], ebx
push ebx
push dword [esp + 0x60]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov dword [esp + 0x48], 0
mov byte [edi + ebx], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov word [esp + 0x48], 2
mov byte [esp + 0x4a], 0
lea ecx, [esp + 0x28]
push 1
lea eax, [esp + 0x4d]
push eax
call fcn.0041cad0
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x18], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movzx eax, byte [esp + 0x18]
test al, 1
je 0x46faf0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
jmp 0x46faf6
shr eax, 1
lea edx, [esp + 0x19]
lea ecx, [esp + 0x38]
push eax
push edx
call fcn.0041cad0
test byte [esp + 0x18], 1
jne 0x46fb20
test byte [esp + 0x48], 1
jne 0x46fb33
test byte [esp + 0x28], 1
je 0x46f9e0
jmp 0x46fb4a
push dword [esp + 0x20]
call fcn.00416a20
add esp, 4
test byte [esp + 0x48], 1
je 0x46fb0f
push dword [esp + 0x50]
call fcn.00416a20
add esp, 4
test byte [esp + 0x28], 1
je 0x46f9e0
push dword [esp + 0x30]
call fcn.00416a20
add esp, 4
jmp 0x46f9e0
xor ecx, ecx
xor edx, edx
test byte [esp + 8], 1
je 0x46fb7b
mov eax, dword [esp + 0x10]
jmp 0x46fb7f
mov dl, byte [esp + 0x38]
mov ecx, dword [esp + 0x3c]
test byte [esp + 8], 1
jne 0x46fb66
lea eax, [esp + 9]
mov ebx, edx
shr bl, 1
test dl, 1
movzx esi, bl
cmove ecx, esi
test ecx, ecx
je 0x46fb9b
test dl, 1
jne 0x46fb9f
lea ecx, [esp + 0x39]
jmp 0x46fba3
xor ecx, ecx
jmp 0x46fba3
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x60]
push edx
lea edx, [esp + 0x7c]
push edx
push 0
push ecx
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x46fc1c
push 0xffffffffffffffff
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x60]
call esi
push dword [esp + 0x64]
call esi
cmp dword [esp + 0x34], 0
je 0x46fc4a
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [esp + 0x34]
push dword [esp + 0x58]
push str._s_failed:__lu_n
push eax
call 0x46fcc0
add esp, 0x10
jmp 0x46fc7b
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004daa60
add esp, 8
test byte [esp + 0x18], 1
je 0x46fc55
mov eax, dword [esp + 0x20]
jmp 0x46fc59
xor esi, esi
test byte [esp + 0x38], 1
jne 0x46fc87
jmp 0x46fc93
lea eax, [esp + 0x19]
push eax
push str.CreateProcess_failed:__s_n
push esi
call 0x46fcc0
add esp, 0xc
test byte [esp + 0x18], 1
je 0x46fc7b
push dword [esp + 0x20]
call fcn.00416a20
add esp, 4
mov esi, 0xffffffff
test byte [esp + 0x38], 1
je 0x46fc93
push dword [esp + 0x40]
call fcn.00416a20
add esp, 4
test byte [esp + 8], 1
je 0x46fca6
push dword [esp + 0x10]
call fcn.00416a20
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x28]
call fcn.0041bfb0
nop dword [eax]
push eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp], edx
push edx
push ecx
push eax
call fcn.004602f0
add esp, 0xc
pop eax
ret