Function at 0x4178c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x288
mov eax, dword [0x4fcb54]
xor eax, esp
mov dword [esp + 0x284], eax
mov eax, dword [esp + 0x290]
push ebx
push ebp
mov ebp, dword [esp + 0x2a0]
push esi
mov esi, dword [esp + 0x298]
push edi
mov edi, dword [esp + 0x2a4]
mov ebx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], 0
call fcn.00484590
test eax, eax
jne 0x417919
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push 0x44
lea ecx, [esp + 0x34]
add eax, 0x10
push 0
push ecx
mov dword [esp + 0x34], eax
mov dword [esi], 0
call fcn.004ac6c0
xor eax, eax
add esp, 0xc
cmp ebx, 3
mov ecx, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x34], eax
mov dword [esp + 0x64], eax
mov word [esp + 0x62], ax
mov dword [esp + 0x38], eax
mov dword [esp + 0x5c], ecx
ja case.default.0x417979
jmp dword [ebx*4 + 0x417b50]
mov word [esp + 0x60], cx
jmp 0x4179a5
mov word [esp + 0x60], 6
jmp 0x4179a5
mov word [esp + 0x60], 3
jmp 0x4179a5
mov word [esp + 0x60], ax
jmp 0x4179a5
mov word [esp + 0x60], bx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
test eax, eax
jne 0x4179c9
mov eax, dword [esp + 0x24]
mov edx, 0x1f4
lea ecx, [esp + 0x98]
call fcn.00411140
jmp 0x4179e8
mov edx, dword [esp + 0x24]
push edi
push edx
push str.__s___s
mov eax, 0x1f4
lea edi, [esp + 0xa4]
call fcn.00417860
add esp, 0xc
push ebp
call ebx
test eax, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x9c]
push ecx
jne 0x417a04
push 0
jmp 0x417a05
push ebp
push 0
push 0x20
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x417a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x417b13
cmp dword [esp + 0x2ac], 0
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
je 0x417afb
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x4ff
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x20]
push ecx
push 1
call edi
cmp eax, 1
jne 0x417ae7
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push edx
call esi
test eax, eax
jle 0x417ad0
lea ecx, [ecx]
mov eax, dword [esp + 0x80]
cmp eax, 0x200
je 0x417aba
cmp eax, 0x201
je 0x417aba
cmp eax, 0x202
je 0x417aba
lea eax, [esp + 0x7c]
push eax
call ebx
lea ecx, [esp + 0x7c]
push ecx
call ebp
push 1
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push edx
call esi
test eax, eax
jg 0x417a90
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
push eax
push 1
call edi
cmp eax, 1
je 0x417a77
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x417afb
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x294]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a3135
add esp, 0x288
ret 0x14