Function at 0x413b78
Capabilities:
Create process on windows

Disassembly:
push 0x134
mov eax, 0x527472
call fcn.004f416f
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x413c9b
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
inc eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00414922
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x413bbe
mov eax, dword [esi]
jmp 0x413bc0
mov eax, esi
mov edx, dword [esi + 0x10]
lea eax, [eax + edx*2]
cmp ecx, 8
jb 0x413bcf
mov ecx, dword [esi]
jmp 0x413bd1
mov ecx, esi
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push ecx
push dword [ebp - 0x4c]
call fcn.004e7af0
xor eax, eax
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0x140]
push ebx
push eax
call fcn.004e9070
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x140]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x4c]
mov dword [ebp - 0x140], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x413ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004036d7
mov esi, eax
push str.GFE::PackageManager::launchProcess:_CreateProcess_failed_with
push esi
mov byte [ebp - 4], 3
call fcn.00406897
pop ecx
pop ecx
push edi
push esi
call fcn.004053dc
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x413c6f
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
inc ecx
call fcn.004284f3
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401501
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], bl
call fcn.004025ae
lea esi, [ebp - 0x4c]
call fcn.00460ab5
xor al, al
call fcn.004f41cb
ret
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
push 0xffffffffffffffff
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x413d5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004036d7
mov esi, eax
push str.GFE::PackageManager::launchProcess:_WaitForSingleObject_failed_with
push esi
mov byte [ebp - 4], 6
call fcn.00406897
pop ecx
pop ecx
push edi
push esi
call fcn.004053dc
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x413d11
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
inc ecx
call fcn.004284f3
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401501
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.004025ae
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], ebx
je 0x413c93
cmp dword [ebp - 0x34], 0xffffffff
je 0x413c93
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413c93
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x413db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004036d7
mov esi, eax
push str.GFE::PackageManager::launchProcess:_GetExitCodeProcess_failed_with
push esi
mov byte [ebp - 4], 8
call fcn.00406897
pop ecx
pop ecx
push edi
push esi
call fcn.004053dc
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 9
jmp 0x413d05
lea eax, [ebp - 0xf8]
push eax
call fcn.004036d7
mov edi, eax
push str.Command_
push edi
mov byte [ebp - 4], 0xa
call fcn.00406897
push edi
mov ecx, esi
call fcn.004080d0
add esp, 0xc
push str._finished_with_code
push edi
call fcn.00406897
pop ecx
pop ecx
push dword [ebp - 0x3c]
push edi
call fcn.004053dc
lea eax, [ebp - 0x30]
push eax
mov eax, edi
call fcn.00403741
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x413e09
lea eax, [ebp - 0x30]
push eax
push 3
pop ecx
call fcn.004284f3
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00401501
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.004025ae
cmp dword [ebp - 0x3c], ebx
mov byte [ebp - 4], bl
sete byte [ebp - 0x35]
cmp dword [ebp - 0x34], ebx
je 0x413e4c
cmp dword [ebp - 0x34], 0xffffffff
je 0x413e4c
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x4c]
call fcn.00460ab5
mov al, byte [ebp - 0x35]
jmp 0x413c9d