Function at 0x419760
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x564
push ebx
push esi
push edi
call fcn.00441cf0
test eax, eax
je 0x419803
push 0
lea eax, [esp + 0x68]
push str.CSetupApp::SpawnApp_n
push eax
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x164]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x164]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x164]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
push ebp
call fcn.00441cf0
mov ebp, dword [esp + 0x57c]
mov ebx, dword [esp + 0x578]
test eax, eax
je 0x419840
push ebp
push ebx
lea ecx, [esp + 0x70]
push str.pszExeName___s__pszCmdArg___s_n
push ecx
call fcn.00465850
add esp, 0x10
lea edx, [esp + 0x68]
push edx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov dword [esp + 0x10], 0
call fcn.004603e0
cmp eax, 0xb
je 0x41985b
cmp eax, 0xc
jne 0x4199b1
mov eax, dword [esp + 0x584]
test eax, eax
jne 0x419882
push 0x22
push ebx
push 0x22
lea eax, [esp + 0x274]
push str._c_s_c
push eax
call fcn.00465850
add esp, 0x14
jmp 0x4198a8
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x268]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
call fcn.00441cf0
test eax, eax
je 0x4198e9
lea ecx, [esp + 0x268]
lea edx, [esp + 0x68]
push ecx
push str.szExeName___s_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x68]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441cf0
test eax, eax
je 0x419916
push ebp
lea ecx, [esp + 0x6c]
push str.pszCmdArg___s_n
push ecx
call fcn.00465850
add esp, 0xc
lea edx, [esp + 0x68]
push edx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
lea ecx, [esp + 0x24]
lea eax, [esp + 0x268]
mov esi, 1
push ecx
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x540
mov dword [esp + 0x34], str.runas
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x41997e
mov eax, dword [esp + 0x580]
test eax, eax
je 0x419975
mov edx, dword [esp + 0x5c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x10], esi
jmp 0x419afd
call fcn.00441cf0
test eax, eax
je 0x4199b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x6c]
push str.Failed_ShellExecuteEx_:_GetLastError_____d_n
push eax
call fcn.00465850
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441cf0
test eax, eax
je 0x4199cb
push str.Trying_to_Spawn_with_CreateProcess_n
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov eax, dword [esp + 0x584]
test eax, eax
jne 0x419a13
test ebp, ebp
jne 0x4199f6
push 0x22
push ebx
push 0x22
lea edx, [esp + 0x274]
push str._c_s_c
push edx
call fcn.00465850
add esp, 0x14
jmp 0x419a46
push ebp
push 0x22
push ebx
push 0x22
lea eax, [esp + 0x278]
push str._c_s_c_s
push eax
call fcn.00465850
add esp, 0x18
jmp 0x419a46
test ebp, ebp
jne 0x419a2f
push ebx
lea ecx, [esp + 0x26c]
push 0x49e164
push ecx
call fcn.00465850
add esp, 0xc
jmp 0x419a46
push ebp
push ebx
lea edx, [esp + 0x270]
push str._s_s
push edx
call fcn.00465850
add esp, 0x10
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.00441cf0
test eax, eax
je 0x419a9f
lea ecx, [esp + 0x268]
lea edx, [esp + 0x68]
push ecx
push str.szCmdLine___s_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x68]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push 0x10
push 0
push 0
lea eax, [esp + 0x284]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x419afd
mov eax, dword [esp + 0x580]
test eax, eax
je 0x419ae1
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
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 dword [esp + 0x10], 1
call fcn.00441cf0
test eax, eax
pop ebp
je 0x419b9b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
push str.CSetupApp::SpawnApp_:_bRetVal___d_n
push edx
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x164]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x164]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x164]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x564
ret 0x10