Function at 0x1045d8b
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x105ee27
call fcn.0104dc9c
xor esi, esi
mov edi, 0x1066af4
mov dword [ebp - 4], esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
call fcn.010442ec
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.010442ec
push 0x10124a0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.01031375
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x84]
push esi
push eax
mov byte [ebp - 4], 6
call sub.msvcrt.dll_memset
mov dword [ebp - 0x84], edi
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], 0x100
call fcn.010455d0
cmp eax, esi
mov dword [ebp - 0x14], eax
jge 0x1045e60
push 0x1002fa0
push 0x1012490
push eax
call fcn.01048c52
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov eax, dword [ebp - 0x14]
call fcn.0104dd50
ret 8
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push 0x101245c
push eax
call fcn.01030c5e
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x18]
cmp dword [ebp + 0xc], esi
je 0x1045e86
push 0x1012448
jmp 0x1045e8b
push 0x1012434
push eax
call fcn.01030c79
mov ebx, dword [ebp - 0x24]
add esp, 0xc
push dword [ebp - 0x18]
push ebx
push 0x1002428
push 0x10123fc
push 0x4000000
call fcn.01048e9b
add esp, 0x14
lea ecx, [ebp - 0x18]
call fcn.0102ff7d
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
jne 0x1045f27
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, esi
jle 0x1045ef1
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
mov dword [ebp - 0x14], eax
jl 0x1045eff
mov dword [ebp - 0x14], 0x80004005
push 0x10123c8
push 0x10123b8
call edi
push eax
call fcn.01048d15
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0102fb3e
lea ecx, [ebx - 0x10]
jmp 0x1045e3a
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.01030140
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, esi
jne 0x1045fb2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, esi
jle 0x1045f6d
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
mov dword [ebp - 0x14], eax
jl 0x1045f7b
mov dword [ebp - 0x14], 0x80004005
push 0x1012360
push 0x101234c
call edi
push eax
call fcn.01048d15
add esp, 0xc
cmp ebx, esi
je 0x1045f9c
lea ecx, [ebp - 0x28]
call fcn.0102fb22
cmp dword [ebp - 0x1c], esi
je 0x1045e29
lea ecx, [ebp - 0x1c]
call fcn.0102fb22
jmp 0x1045e29
cmp dword [ebp - 0x2c], esi
je 0x1045f90
push dword [ebp - 0x2c]
mov eax, 0x80004005
push 0x1012300
push 0x10122f0
push eax
mov dword [ebp - 0x14], eax
call fcn.01048c52
add esp, 0x10
jmp 0x1045f90