Function at 0x410d69
Capabilities:
Create process on windows

Disassembly:
push 0x134
mov eax, 0x4e6cbb
call fcn.0044b094
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x410eba
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.00412165
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x410daf
mov eax, dword [esi]
jmp 0x410db1
mov eax, esi
mov edx, dword [esi + 0x10]
lea eax, [eax + edx*2]
cmp ecx, 8
jb 0x410dc0
mov ecx, dword [esi]
jmp 0x410dc2
mov ecx, esi
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push ecx
push dword [ebp - 0x4c]
call fcn.004451a0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004459b0
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [ebp - 0x140]
push ebx
push eax
call fcn.004459b0
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 0x410ec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004021e7
lea eax, [ebp - 0xf8]
push str.GFE::PackageManager::launchProcess:_CreateProcess_failed_with
push eax
mov byte [ebp - 4], 3
call fcn.004035ab
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xf8]
push eax
call fcn.0040c5a1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0xf8]
call fcn.00402860
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x410e77
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
inc ecx
call fcn.00417f5f
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], bl
call fcn.00402251
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.004441d6
pop ecx
lea esi, [ebp - 0x4c]
call fcn.0041d4a8
xor al, al
call fcn.0044b0f0
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 0x410f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004021e7
lea eax, [ebp - 0xf8]
push str.GFE::PackageManager::launchProcess:_WaitForSingleObject_failed_with
push eax
mov byte [ebp - 4], 6
call fcn.004035ab
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xf8]
push eax
call fcn.0040c5a1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0xf8]
call fcn.00402860
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x410f3d
lea eax, [ebp - 0x30]
xor ecx, ecx
push eax
inc ecx
call fcn.00417f5f
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 5
call fcn.00402251
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.004441d6
pop ecx
cmp dword [ebp - 0x34], ebx
je 0x410eb2
cmp dword [ebp - 0x34], 0xffffffff
je 0x410eb2
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410eb2
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 0x410ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xf8]
push eax
call fcn.004021e7
lea eax, [ebp - 0xf8]
push str.GFE::PackageManager::launchProcess:_GetExitCodeProcess_failed_with
push eax
mov byte [ebp - 4], 8
call fcn.004035ab
pop ecx
pop ecx
push esi
lea eax, [ebp - 0xf8]
push eax
call fcn.0040c5a1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0xf8]
call fcn.00402860
mov byte [ebp - 4], 9
jmp 0x410f31
lea eax, [ebp - 0xf8]
push eax
call fcn.004021e7
lea eax, [ebp - 0xf8]
push str.Command_
push eax
mov byte [ebp - 4], 0xa
call fcn.004035ab
lea eax, [ebp - 0xf8]
push eax
mov ecx, esi
call fcn.00404b18
add esp, 0xc
lea eax, [ebp - 0xf8]
push str._finished_with_code
push eax
call fcn.004035ab
pop ecx
pop ecx
push dword [ebp - 0x3c]
lea eax, [ebp - 0xf8]
push eax
call fcn.0040c5a1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0xf8]
call fcn.00402860
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x41106f
lea eax, [ebp - 0x30]
push eax
push 3
pop ecx
call fcn.00417f5f
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.00402a3c
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 5
call fcn.00402251
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.004441d6
cmp dword [ebp - 0x3c], ebx
pop ecx
sete byte [ebp - 0x35]
cmp dword [ebp - 0x34], ebx
je 0x4110c6
cmp dword [ebp - 0x34], 0xffffffff
je 0x4110c6
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x4c]
call fcn.0041d4a8
mov al, byte [ebp - 0x35]
jmp 0x410ebc