Function at 0x4080a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4490d0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x6870
call fcn.00435250
mov eax, dword [0x4625e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x6820], ebx
mov dword [ebp - 0x6824], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4084a3
mov eax, esi
lea edx, [eax + 2]
jmp 0x408100
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408100
sub eax, edx
sar eax, 1
je 0x4084a3
push 0xffffffffffffffff
push esi
push str._RunExecute__Execute_command_____s___wait_time___d
mov ecx, 0x467200
call fcn.00405f70
push 0x44
push 0
lea eax, [ebp - 0x6880]
push eax
call fcn.00431f90
xor eax, eax
mov dword [ebp - 0x6838], eax
mov dword [ebp - 0x6834], eax
mov dword [ebp - 0x6830], eax
mov dword [ebp - 0x682c], eax
push 0x800
push eax
lea ecx, [ebp - 0x818]
push ecx
call fcn.00431f90
push 0x2000
push 0
lea edx, [ebp - 0x4818]
push edx
call fcn.00431f90
push 0x2000
push 0
lea eax, [ebp - 0x2818]
push eax
call fcn.00431f90
push 0x2000
push 0
lea ecx, [ebp - 0x6818]
push ecx
call fcn.00431f90
add esp, 0x48
test edi, edi
je 0x40824c
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4081b0
sub eax, edx
sar eax, 1
je 0x40824c
mov eax, esi
lea ecx, [ebp - 0x818]
call fcn.00401790
push 0xfff
push edi
push 0x1000
lea edx, [ebp - 0x4818]
push edx
call fcn.00430f8d
mov ecx, 0x454204
lea edx, [ebp - 0x818]
call fcn.004087b0
mov ecx, 0x454204
lea edx, [ebp - 0x818]
call fcn.00408960
mov ecx, 0x45685c
lea edx, [ebp - 0x4818]
call fcn.004087b0
mov ecx, 0x45685c
lea edx, [ebp - 0x4818]
call fcn.00408960
lea eax, [ebp - 0x4818]
push eax
lea ecx, [ebp - 0x818]
push ecx
push str.__s___s
lea edx, [ebp - 0x2818]
call fcn.00408b00
add esp, 0x1c
jmp 0x408286
push 0xfff
push esi
push 0x1000
lea edx, [ebp - 0x2818]
push edx
call fcn.00430f8d
add esp, 0x10
mov ecx, 0x45685c
lea edx, [ebp - 0x2818]
call fcn.004087b0
mov ecx, 0x45685c
lea edx, [ebp - 0x2818]
call fcn.00408960
push 0xfff
lea eax, [ebp - 0x2818]
push eax
push 0x1000
lea ecx, [ebp - 0x6818]
push ecx
call fcn.00430f8d
mov ecx, 0x455210
lea edx, [ebp - 0x6818]
call fcn.004087b0
mov ecx, 0x455210
lea edx, [ebp - 0x6818]
call fcn.00408960
push 0x1000
lea edx, [ebp - 0x6818]
push edx
call fcn.00431950
push str..EXE
lea eax, [ebp - 0x6818]
push eax
call fcn.0043160c
add esp, 0x20
test eax, eax
je 0x408313
mov word [eax], 0
push 0x5c
lea ecx, [ebp - 0x6818]
push ecx
call fcn.0043166a
add esp, 8
test eax, eax
je 0x408313
mov word [eax], 0
lea esi, [ebp - 0x6818]
jmp 0x408315
xor esi, esi
lea edx, [ebp - 0x2818]
push edx
push str._RunExecute__Command_Line____s_
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
mov ecx, 0x467200
test esi, esi
je 0x408347
push esi
push str._RunExecute__Current_Directory____s_
call fcn.00405f70
add esp, 8
jmp 0x408354
push str._RunExecute__Current_Directory___NULL_
call fcn.00405f70
add esp, 4
lea eax, [ebp - 0x6838]
push eax
lea ecx, [ebp - 0x6880]
push ecx
push esi
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x2818]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408471
or esi, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ecx]
push esi
mov eax, dword [ebp - 0x6838]
push eax
call edi
test eax, eax
je 0x4083f5
cmp eax, 0x102
je 0x4083bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x681c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x4084eb
or eax, 0xffffffff
cmp dword [ebp - 0x6820], eax
ja 0x4083cf
cmp eax, 0xffffffff
jne 0x4083da
mov ebx, 0x102
mov dword [ebp - 0x681c], ebx
add dword [ebp - 0x6820], 0x64
cmp ebx, 0x102
jne 0x408390
mov dword [ebp - 4], 0xffffffff
jmp 0x4084eb
lea ecx, [ebp - 0x6824]
push ecx
mov edx, dword [ebp - 0x6838]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x408446
xor eax, eax
je 0x408419
mov ecx, dword [ebp - 0x6824]
mov dword [eax], ecx
mov edx, dword [ebp - 0x6824]
push edx
push str._RunExecute__Process_Exit_Code___d
mov ecx, 0x467200
call fcn.00405f70
add esp, 8
xor ebx, ebx
mov dword [ebp - 0x681c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x4084eb
push str._RunExecute__Get_ExitCode_from_Process_FAIL____
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x467200
call fcn.00405e30
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x681c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x4084eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x681c], ebx
lea eax, [ebp - 0x2818]
push eax
push str.CreateProcess__s_
mov ecx, ebx
mov edx, 0x467200
call fcn.00405e30
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x4084eb
push 0x456cb0
mov ecx, 0x467200
call fcn.00405f70
add esp, 4
mov eax, 0x57
jmp 0x4084ed
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431056
mov esp, ebp
pop ebp
ret