Function at 0x480640
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57df21
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5fad8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd4], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x100], eax
call fcn.0047e660
test al, al
jne 0x48070b
push 0x43
push str.exec_stream_t::start:_previous_child_process_has_not_yet_terminated
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], al
call fcn.00455d10
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x64], vtable.exec_stream_t::error_t.0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x58]
call fcn.00455e10
push 0x5ee768
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xffffffff
mov dword [ebp - 0xf0], 0xffffffff
call fcn.0047f850
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 3
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0xffffffff
mov dword [ebp - 0xe4], 0xffffffff
call fcn.0047f850
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 4
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0xffffffff
mov dword [ebp - 0xd8], 0xffffffff
call fcn.0047f850
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp - 0xd4]
mov edi, eax
push 2
push 0
push 0
mov ecx, dword [ecx]
add ecx, 4
push ecx
push edi
push dword [ebp - 0xf0]
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4807ec
push str.exec_stream_t::start:_unable_to_duplicate_in_handle
lea ecx, [ebp - 0x40]
call fcn.00454680
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x64]
call fcn.0047db10
push 0x5ee710
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0xf8]
call fcn.0047ea70
mov eax, dword [ebp - 0xd4]
push 2
push 0
push 0
mov eax, dword [eax]
add eax, 8
push eax
push edi
push dword [ebp - 0xe8]
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x480846
push str.exec_stream_t::start:_unable_to_duplicate_out_handle
lea ecx, [ebp - 0x40]
call fcn.00454680
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x64]
call fcn.0047db10
push 0x5ee710
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0xec]
call fcn.0047e990
mov eax, dword [ebp - 0xd4]
push 2
push 0
push 0
mov eax, dword [eax]
add eax, 0xc
push eax
push edi
push dword [ebp - 0xdc]
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4808a0
push str.exec_stream_t::start:_unable_to_duplicate_err_handle
lea ecx, [ebp - 0x40]
call fcn.00454680
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x64]
call fcn.0047db10
push 0x5ee710
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0xe0]
call fcn.0047e990
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov edi, dword [ebp - 0xfc]
mov ecx, dword [esi + 0x10]
add ecx, 3
mov byte [ebp - 4], 9
mov eax, dword [edi + 0x10]
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00454480
cmp dword [esi + 0x14], 0x10
jb 0x4808e5
mov eax, dword [esi]
jmp 0x4808e7
mov eax, esi
cmp byte [eax], 0x22
je 0x480926
push 0
push 0x58df88
mov ecx, esi
call fcn.0047ef30
cmp eax, 0xffffffff
je 0x480926
push 0x22
push 1
lea ecx, [ebp - 0x28]
call fcn.00455f30
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00456100
push 0x22
push 1
lea ecx, [ebp - 0x28]
call fcn.00455f30
jmp 0x480939
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x480939
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00455e10
cmp dword [edi + 0x10], 0
je 0x480958
push 0x20
push 1
lea ecx, [ebp - 0x28]
call fcn.00455f30
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00456100
push 0x44
lea eax, [ebp - 0x154]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xe4]
xorps xmm0, xmm0
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0xfde9
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x154], 0x44
push eax
mov dword [ebp - 0x128], 0x100
movups xmmword [ebp - 0x110], xmm0
call fcn.00480f30
add esp, 0x18
mov eax, dword [ebp - 0x100]
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x10], 0
jne 0x480a2e
cmp dword [ebp - 0x68], 8
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x154]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x480acf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push str.exec_stream_t::start:_CreateProcess_failed._n_command_line_was:
push eax
call fcn.004570e0
add esp, 0xc
mov byte [ebp - 4], 0xb
jmp 0x4807d5
cmp dword [eax + 0x14], 0x10
jb 0x480a36
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00480f30
add esp, 0xc
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x110]
push edx
lea edx, [ebp - 0x154]
mov byte [ebp - 4], 0xc
push edx
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
push eax
cmovae ecx, dword [ebp - 0x7c]
push 0
push 0x8000000
push 1
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x480ac3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xd0]
push str.exec_stream_t::start:_CreateProcess_failed._n_command_line_was:
push eax
call fcn.004570e0
add esp, 0xc
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xd
call fcn.0047db10
push 0x5ee710
lea eax, [ebp - 0xb8]
jmp 0x4807e6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.0045d4a0
mov esi, dword [ebp - 0xd4]
mov eax, dword [ebp - 0x110]
mov ecx, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
add ecx, 0xf4
call fcn.0047e610
mov ecx, dword [esi]
add ecx, 0x138
call fcn.0047e610
mov ecx, dword [esi]
add ecx, 0x17c
call fcn.0047e610
mov ecx, dword [esi]
push 0
push 0
mov eax, dword [ecx + 0x1c0]
add ecx, 0x1c0
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, dword [esi]
push 0
push 0
mov eax, dword [ecx + 0x218]
add ecx, 0x218
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, dword [esi]
push 0
push 0
mov eax, dword [ecx + 0x278]
add ecx, 0x278
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, dword [esi]
push 0x1000
add ecx, 0x5c
call fcn.00480210
mov eax, dword [esi]
push 1
push dword [eax + 8]
lea ecx, [eax + 0x5c]
call fcn.00480c30
mov ecx, dword [esi]
push 0x1000
add ecx, 0xa8
call fcn.00480210
mov eax, dword [esi]
push 1
push dword [eax + 0xc]
lea ecx, [eax + 0xa8]
call fcn.00480c30
mov eax, dword [esi]
push 2
push dword [eax + 4]
lea ecx, [eax + 0x10]
call fcn.00480c30
lea ecx, [ebp - 0x7c]
call fcn.0045d4a0
lea ecx, [ebp - 0x28]
call fcn.00454540
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xe
call fcn.0047e990
lea ecx, [ebp - 0xe0]
call fcn.0047ea70
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0xf
call fcn.0047e990
lea ecx, [ebp - 0xec]
call fcn.0047ea70
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0x10
call fcn.0047e990
lea ecx, [ebp - 0xf8]
call fcn.0047ea70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053649e
mov esp, ebp
pop ebp
ret 0xc