Function at 0x421f4b
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x164
push ebx
push ebp
push esi
mov esi, dword [esp + 0x174]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4222a0
cmp dword [esp + 0x17c], ebx
je 0x4222a0
cmp dword [esp + 0x184], ebx
je 0x4222a0
mov al, byte [0x441e2c]
push 0x40
mov byte [esp + 0x74], al
pop ecx
xor eax, eax
lea edi, [esp + 0x71]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x70]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [esp + 0x78]
push 0x43692c
push eax
call sub.MSVCRT.dll_strcat
push dword [esp + 0x18c]
lea eax, [esp + 0x84]
push eax
call sub.MSVCRT.dll_strcat
push 0x44
lea eax, [esp + 0x48]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 0x24
cmp dword [0x441ff4], ebx
mov dword [esp + 0x2c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov word [esp + 0x5c], bx
mov dword [esp + 0x58], 1
je 0x422086
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x42201b
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x422086
cmp eax, 3
jle 0x422086
call edi
mov ebp, eax
call esi
cmp dword [0x43d8ac], ebx
mov dword [esp + 0x14], eax
jge 0x422037
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x422071
push 3
push dword [0x43d8ac]
push 0x546
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
lea eax, [esp + 0x80]
push eax
push str.LaunchProcessAndWait:_process_path___s_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSASetLastError]
call ebp
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42208c
mov ebp, dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea eax, [esp + 0x8c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x422146
cmp dword [0x441ff4], ebx
je 0x422331
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 2
je 0x4220e3
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x422331
cmp eax, 2
jle 0x422331
call edi
mov edi, eax
call esi
cmp dword [0x43d8ac], ebx
mov esi, eax
jge 0x4220fd
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x42213d
push 2
push dword [0x43d8ac]
push 0x54a
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
push dword [esp + 0x18c]
push dword [esp + 0x18c]
push str.LaunchProcessAndWait:_Create_process_failed._Process_name___s___cmdline____s_n
call fcn.0041c506
add esp, 0x1c
call fcn.0041c4cc
push edi
call ebp
push esi
jmp 0x42232b
push dword [esp + 0x180]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4221ea
cmp dword [0x441ff4], ebx
je 0x4221ea
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x422186
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x4221ea
cmp eax, 1
jle 0x4221ea
call edi
mov dword [esp + 0x18], eax
call esi
cmp dword [0x43d8ac], ebx
mov dword [esp + 0x10], eax
jge 0x4221a4
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x4221da
push 1
push dword [0x43d8ac]
push 0x54f
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
push dword [esp + 0x24]
push str.LaunchProcessAndWait:_WaitForSingleObject_failed_error_code__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push dword [esp + 0x18]
call ebp
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0x184]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42228c
cmp dword [0x441ff4], ebx
je 0x42228f
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42222a
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42228f
cmp eax, 1
jle 0x42228f
call edi
mov edi, eax
call esi
cmp dword [0x43d8ac], ebx
mov dword [esp + 0x10], eax
jge 0x422246
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x42227d
push 1
push dword [0x43d8ac]
push 0x553
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str.LaunchProcessAndWait:_GetExitCodeProcess_failed_error_code__d_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push edi
call ebp
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42228f
push 1
pop ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x422333
cmp dword [0x441ff4], ebx
je 0x422331
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 2
je 0x4222c7
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x422331
cmp eax, 2
jle 0x422331
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43d8ac], ebx
mov ebp, eax
jge 0x4222e9
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x422323
push 2
push dword [0x43d8ac]
push 0x536
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
push dword [esp + 0x18c]
push esi
push str.LaunchProcessAndWait:_param_error__name_0x_08X__cmdline_0x_08X_n
call fcn.0041c506
add esp, 0x1c
call fcn.0041c4cc
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret