Function at 0x408040
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449070
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x6870
call fcn.004351f0
mov eax, dword [0x4615e0]
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 0x408443
mov eax, esi
lea edx, [eax + 2]
jmp 0x4080a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4080a0
sub eax, edx
sar eax, 1
je 0x408443
push 0xffffffffffffffff
push esi
push str._RunExecute__Execute_command_____s___wait_time___d
mov ecx, 0x466208
call fcn.00405f80
push 0x44
push 0
lea eax, [ebp - 0x6880]
push eax
call fcn.00431f30
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.00431f30
push 0x2000
push 0
lea edx, [ebp - 0x4818]
push edx
call fcn.00431f30
push 0x2000
push 0
lea eax, [ebp - 0x2818]
push eax
call fcn.00431f30
push 0x2000
push 0
lea ecx, [ebp - 0x6818]
push ecx
call fcn.00431f30
add esp, 0x48
test edi, edi
je 0x4081ec
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408150
sub eax, edx
sar eax, 1
je 0x4081ec
mov eax, esi
lea ecx, [ebp - 0x818]
call fcn.00401790
push 0xfff
push edi
push 0x1000
lea edx, [ebp - 0x4818]
push edx
call fcn.00430f2d
mov ecx, 0x453204
lea edx, [ebp - 0x818]
call fcn.00408750
mov ecx, 0x453204
lea edx, [ebp - 0x818]
call fcn.00408900
mov ecx, 0x45574c
lea edx, [ebp - 0x4818]
call fcn.00408750
mov ecx, 0x45574c
lea edx, [ebp - 0x4818]
call fcn.00408900
lea eax, [ebp - 0x4818]
push eax
lea ecx, [ebp - 0x818]
push ecx
push str.__s___s
lea edx, [ebp - 0x2818]
call fcn.00408aa0
add esp, 0x1c
jmp 0x408226
push 0xfff
push esi
push 0x1000
lea edx, [ebp - 0x2818]
push edx
call fcn.00430f2d
add esp, 0x10
mov ecx, 0x45574c
lea edx, [ebp - 0x2818]
call fcn.00408750
mov ecx, 0x45574c
lea edx, [ebp - 0x2818]
call fcn.00408900
push 0xfff
lea eax, [ebp - 0x2818]
push eax
push 0x1000
lea ecx, [ebp - 0x6818]
push ecx
call fcn.00430f2d
mov ecx, 0x454210
lea edx, [ebp - 0x6818]
call fcn.00408750
mov ecx, 0x454210
lea edx, [ebp - 0x6818]
call fcn.00408900
push 0x1000
lea edx, [ebp - 0x6818]
push edx
call fcn.004318f0
push str..EXE
lea eax, [ebp - 0x6818]
push eax
call fcn.004315ac
add esp, 0x20
test eax, eax
je 0x4082b3
mov word [eax], 0
push 0x5c
lea ecx, [ebp - 0x6818]
push ecx
call fcn.0043160a
add esp, 8
test eax, eax
je 0x4082b3
mov word [eax], 0
lea esi, [ebp - 0x6818]
jmp 0x4082b5
xor esi, esi
lea edx, [ebp - 0x2818]
push edx
push str._RunExecute__Command_Line____s_
mov ecx, 0x466208
call fcn.00405f80
add esp, 8
mov ecx, 0x466208
test esi, esi
je 0x4082e7
push esi
push str._RunExecute__Current_Directory____s_
call fcn.00405f80
add esp, 8
jmp 0x4082f4
push str._RunExecute__Current_Directory___NULL_
call fcn.00405f80
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 0x408411
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 0x408395
cmp eax, 0x102
je 0x40835f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x681c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x40848b
or eax, 0xffffffff
cmp dword [ebp - 0x6820], eax
ja 0x40836f
cmp eax, 0xffffffff
jne 0x40837a
mov ebx, 0x102
mov dword [ebp - 0x681c], ebx
add dword [ebp - 0x6820], 0x64
cmp ebx, 0x102
jne 0x408330
mov dword [ebp - 4], 0xffffffff
jmp 0x40848b
lea ecx, [ebp - 0x6824]
push ecx
mov edx, dword [ebp - 0x6838]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4083e6
xor eax, eax
je 0x4083b9
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, 0x466208
call fcn.00405f80
add esp, 8
xor ebx, ebx
mov dword [ebp - 0x681c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x40848b
push str._RunExecute__Get_ExitCode_from_Process_FAIL____
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x466208
call fcn.00405e40
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x681c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x40848b
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, 0x466208
call fcn.00405e40
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x40848b
push 0x455ba0
mov ecx, 0x466208
call fcn.00405f80
add esp, 4
mov eax, 0x57
jmp 0x40848d
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.00430ff6
mov esp, ebp
pop ebp
ret