Function at 0x416800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
and esi, 2
sub esp, 0xdc
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x40], edx
mov dword [esp + 0x60], 0xc
test eax, eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 1
je 0x4169ba
lea eax, [esp + 0x60]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf0]
mov dword [esp], eax
call dword [0x4c583c]
sub esp, 0x10
test eax, eax
je 0x416cee
mov eax, dword [esp + 0xf0]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [eax]
mov dword [esp], eax
call dword [0x4c58bc]
sub esp, 0xc
test eax, eax
je 0x416e2d
lea edx, [esp + 0x8c]
mov ecx, 0x11
xor eax, eax
mov dword [esp + 0x88], 0x48
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0xb4], 0x100
test esi, esi
je 0x416e46
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x5c]
lea ebp, [esp + 0x78]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebp
mov edi, dword [0x4c5894]
mov dword [esp + 0xc4], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 4], 1
mov dword [esp], 0
call edi
sub esp, 0x10
test eax, eax
jne 0x416920
call dword [0x4c5868]
cmp eax, 0x7a
jne 0x416cb9
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0042fa98
mov esi, eax
test eax, eax
je 0x416f00
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call edi
sub esp, 0x10
test eax, eax
je 0x416cb1
lea eax, [esp + 0x6c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20002
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [0x4c58d0]
sub esp, 0x1c
test eax, eax
je 0x416ca5
mov dword [esp + 0xcc], esi
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
jmp 0x416a5e
mov eax, dword [esp + 0xf0]
and ecx, 1
lea edx, [esp + 0x8c]
mov ecx, 0x11
mov dword [esp + 0x88], 0x48
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0xb4], 0x100
jne 0x416a3c
mov dword [esp], 0xfffffff5
test esi, esi
jne 0x416de1
mov esi, dword [0x4c5884]
call esi
sub esp, 4
mov dword [esp + 0xc4], eax
mov dword [esp + 0x48], 1
mov dword [esp], 0xfffffff4
call esi
xor esi, esi
sub esp, 4
mov dword [esp + 0xc8], eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], 0
jmp 0x416a5e
test esi, esi
je 0x416d0c
mov dword [esp + 0x44], 0
xor esi, esi
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], 0x2000
call fcn.0042fa98
mov ebp, eax
test eax, eax
je 0x416d47
mov ecx, dword [ebx]
lea edx, [ebx + 4]
test ecx, ecx
je 0x416b35
mov dword [esp + 0x3c], esi
xor edi, edi
lea esi, cs:[esi]
nop
test edi, edi
je 0x416db0
mov byte [ebp + edi], 0x20
lea eax, [edi + 1]
cmp edi, 0x1fff
je 0x416d20
mov ebx, 0x2000
sub ebx, eax
mov dword [esp + 0x38], ebx
lea ebx, [ebp + eax]
cmp eax, 0x1fff
je 0x416dcd
mov edi, eax
mov esi, 0x1fff
mov dword [esp + 0x34], edx
xor eax, eax
sub esi, edi
jmp 0x416aee
mov byte [ebx + eax], dl
add eax, 1
cmp eax, esi
jae 0x416dc0
movzx edx, byte [ecx + eax]
test dl, dl
jne 0x416ae0
mov edx, dword [esp + 0x34]
add ecx, eax
add ebx, eax
mov byte [ebx], 0
cmp byte [ecx], 0
jne 0x416d20
mov esi, dword [esp + 0x38]
cmp eax, esi
jae 0x416d20
mov ecx, dword [edx]
add edx, 4
add edi, eax
test ecx, ecx
jne 0x416a90
mov esi, dword [esp + 0x3c]
cmp edi, 0x1fff
ja 0x416d2b
mov dword [esp + 0x14], 0
mov ebx, dword [0x4c58a8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call ebx
sub esp, 0x18
mov edi, eax
test eax, eax
je 0x416e94
lea eax, [eax + eax]
mov dword [esp], eax
call fcn.0042fa98
test eax, eax
je 0x416e6a
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call ebx
sub esp, 0x18
mov dword [esp], ebp
call fcn.0042fa48
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
or edx, eax
jne 0x416e10
mov ebx, dword [esp + 0x44]
xor eax, eax
test ebx, ebx
sete al
shl eax, 3
lea edx, [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x88]
mov dword [esp + 4], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [0x4c5840]
sub esp, 0x28
mov ebx, eax
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
call fcn.0042fa48
test ebx, ebx
je 0x416ecd
test esi, esi
je 0x416c63
mov dword [esp], esi
call dword [0x4c5848]
sub esp, 4
mov dword [esp], esi
call fcn.0042fa48
mov eax, dword [esp + 0x7c]
mov ebx, dword [0x4c5838]
mov dword [esp], eax
call ebx
sub esp, 4
mov edx, dword [esp + 0xf0]
test edx, edx
je 0x416c8c
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x40]
xor ebx, ebx
mov dword [edi], eax
add esp, 0xdc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call dword [0x4c5848]
sub esp, 4
mov dword [esp], esi
call fcn.0042fa48
mov ebx, 1
mov eax, dword [esp + 0xf0]
mov esi, dword [0x4c5838]
mov eax, dword [eax]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call esi
mov eax, ebx
sub esp, 4
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.pipe
mov ebx, 1
call fcn.0042fab0
add esp, 0xdc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x48], 0
mov esi, dword [0x4c5884]
jmp 0x416a15
mov byte [ebp + 0x1fff], 0
mov esi, dword [esp + 0x3c]
mov dword [esp + 8], 0x1fff
mov dword [esp + 4], str.Command_too_long___Iu_chars_
mov dword [esp], 0
call fcn.00421700
mov dword [esp + 0x10], str.sc_process_execute_p
mov dword [esp + 0xc], 0x8e
mov dword [esp + 8], str..._app_src_sys_win_process.c
mov dword [esp + 4], str.OOM:__s:_d__s__
mov dword [esp], 0
call fcn.00421700
mov ebx, 1
test esi, esi
je 0x416d90
mov dword [esp], esi
call dword [0x4c5848]
sub esp, 4
mov dword [esp], esi
call fcn.0042fa48
mov eax, dword [esp + 0xf0]
test eax, eax
jne 0x416cbe
add esp, 0xdc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x38], 0x2000
mov ebx, ebp
jmp 0x416ac8
mov edx, dword [esp + 0x34]
add ebx, eax
add ecx, eax
jmp 0x416afe
mov dword [esp + 0x38], 1
mov edi, 0x1fff
xor eax, eax
jmp 0x416afe
call dword [0x4c5884]
xor esi, esi
sub esp, 4
mov dword [esp + 0xc4], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0
jmp 0x416a5e
mov ebx, dword [esp + 0x48]
shl eax, 0x13
or dword [esp + 0x44], ebx
jne 0x416bde
mov dword [esp + 0x44], edx
or eax, 8
jmp 0x416bde
mov dword [esp + 4], str.SetHandleInformation_stdout_failed
mov dword [esp], 0
call fcn.00421700
jmp 0x416cb9
mov dword [esp], 0xfffffff4
call dword [0x4c5884]
sub esp, 4
mov dword [esp + 0xc8], eax
mov dword [esp + 0x44], 1
jmp 0x4168d4
xor edi, edi
mov dword [esp + 0x10], str.sc_str_to_wchars
mov dword [esp + 0xc], 0xc3
mov dword [esp + 8], str..._app_src_util_str.c
mov dword [esp + 4], str.OOM:__s:_d__s__
mov dword [esp], edi
call fcn.00421700
mov dword [esp], ebp
call fcn.0042fa48
mov dword [esp + 0x10], str.sc_process_execute_p
mov dword [esp + 0xc], 0x95
mov dword [esp + 8], str..._app_src_sys_win_process.c
mov dword [esp + 4], str.OOM:__s:_d__s__
mov dword [esp], 0
call fcn.00421700
jmp 0x416d73
call dword [0x4c5868]
mov dword [esp + 4], str.CreateProcessW___error__d
mov ebx, 2
mov dword [esp + 8], eax
mov edi, eax
mov dword [esp], 0
call fcn.00421700
cmp edi, 2
jne 0x416d73
jmp 0x416d78
xor ebp, ebp
mov dword [esp + 0x10], str.sc_process_execute_p
mov dword [esp + 0xc], 0x77
mov dword [esp + 8], str..._app_src_sys_win_process.c
mov dword [esp + 4], str.OOM:__s:_d__s__
mov dword [esp], ebp
call fcn.00421700
jmp 0x416cb9