Function at 0x140005c20
Capabilities:
Create process on windows
Resume thread

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
xor r15d, r15d
lea r12, vtable.std::ios_base.0
mov rcx, qword [0x1400ed4f0]
test rcx, rcx
je 0x140005d79
mov rax, qword [rcx]
call qword [rax + 0x18]
test al, al
je 0x140005d79
lea rcx, [0x1400c75b8]
call fcn.14036b37a
nop
mov rbx, rax
mov rdi, qword [0x1400ed4f0]
lea rcx, [rsp + 0x70]
call fcn.140007580
nop
mov rdx, rbx
mov rcx, rax
call fcn.140010e60
mov rdx, rsi
mov rcx, rax
call fcn.14000e620
mov rcx, rax
call fcn.14000e570
lea rdx, [rbp + 0x150]
mov rcx, rax
call fcn.1400076e0
nop
mov r9, qword [rdi]
xor edx, edx
mov r8, rax
mov rcx, rdi
call qword [r9 + 0x28]
nop
cmp qword [rbp + 0x168], 0x10
jb 0x140005cfc
mov rcx, qword [rbp + 0x150]
call fcn.14007f05c
mov qword [rbp + 0x168], shutdown
mov qword [rbp + 0x160], r15
mov byte [rbp + 0x150], 0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140007710
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
mov qword [rbp - 8], r12
lea rcx, [rbp - 8]
call fcn.1400550f8
mov qword [rbp + 0x118], r15
mov qword [rbp + 0x120], r15
lea rax, vtable.ThettaService::Common::IPC::AppInitProtectedProcessStartArgs.0
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x148], 7
mov qword [rbp + 0x140], r15
mov word [rbp + 0x130], r15w
mov rdx, rsi
lea rcx, [rbp + 0x110]
call fcn.140007df0
test al, al
jne 0x140005e0b
cmp qword [rbp + 0x148], 8
jb 0x140005dd8
mov rcx, qword [rbp + 0x130]
call fcn.14007f05c
mov rcx, qword [rbp + 0x120]
test rcx, rcx
je 0x140005dea
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp + 0x118]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140005e01
call qword [0x1400b4580]
mov eax, 0x6000
jmp 0x14000632b
mov qword [rbp + 0xe8], 7
mov qword [rbp + 0xe0], r15
mov word [rbp + 0xd0], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0xd0]
call fcn.140009940
nop
mov rdx, qword [rbp + 0xe0]
test rdx, rdx
jne 0x140005e81
cmp qword [rbp + 0xe8], 8
jb 0x140005e62
mov rcx, qword [rbp + 0xd0]
call fcn.14007f05c
mov qword [rbp + 0xe8], 7
mov qword [rbp + 0xe0], r15
mov word [rbp + 0xd0], r15w
jmp 0x140005dc2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x150], xmm0
mov qword [rbp + 0x160], r15
inc rdx
lea rcx, [rbp + 0x150]
call fcn.140007f10
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 8
cmovae rdx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xe0]
lea r9, [rdx + rax*2]
lea rdx, [rbp + 0xd0]
cmovae rdx, qword [rbp + 0xd0]
sub r9, rdx
sar r9, 1
lea r8, [r9 + r9]
mov rsi, qword [rbp + 0x150]
mov rcx, rsi
call fcn.14007e7a0
mov rax, qword [rbp + 0xe0]
mov word [rsi + rax*2], r15w
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp + 0x60]
call fcn.1400809a0
mov dword [rbp + 0x60], 0x68
mov rcx, qword [0x1400ed4f0]
test rcx, rcx
je 0x140005fd2
mov rax, qword [rcx]
call qword [rax + 0x18]
test al, al
je 0x140005fd2
lea rcx, [0x1400c75d8]
call fcn.14036b37a
nop
mov rbx, rax
mov rdi, qword [0x1400ed4f0]
lea rcx, [rsp + 0x70]
call fcn.140008040
nop
mov rdx, rbx
mov rcx, rax
call fcn.14000e8c0
mov rdx, rsi
mov rcx, rax
call fcn.14000e8c0
mov rcx, rax
call fcn.14000eb20
lea rdx, [rbp + 0xf0]
mov rcx, rax
call fcn.1400081a0
nop
mov r9, qword [rdi]
xor edx, edx
mov r8, rax
mov rcx, rdi
call qword [r9 + 0x20]
nop
cmp qword [rbp + 0x108], 8
jb 0x140005fa2
mov rcx, qword [rbp + 0xf0]
call fcn.14007f05c
mov qword [rbp + 0x108], 7
mov qword [rbp + 0x100], r15
mov word [rbp + 0xf0], r15w
lea rcx, [rbp - 8]
call fcn.140008120
mov qword [rbp - 8], r12
lea rcx, [rbp - 8]
call fcn.1400550f8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x424
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400061b4
mov rax, qword [rsp + 0x50]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400061b4
lea rcx, [0x1400c8100]
call fcn.14036b37a
nop
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], r15
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0xf0]
call fcn.140011f80
movzx r14d, al
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
or edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rsp + 0x50]
call qword [0x1400b4580]
mov rcx, qword [rsp + 0x58]
call qword [0x1400b4580]
mov rcx, qword [0x1400ed4f0]
test rcx, rcx
je 0x140006153
mov rax, qword [rcx]
call qword [rax + 0x18]
test al, al
je 0x140006153
lea rcx, [0x1400c7620]
call fcn.14036b37a
nop
mov rbx, rax
mov rdi, qword [0x1400ed4f0]
lea rcx, [rsp + 0x70]
call fcn.140007580
nop
mov rdx, rbx
mov rcx, rax
call fcn.140010e60
movzx edx, r14b
mov rcx, rax
call fcn.140006ec0
mov rcx, rax
call fcn.14000e570
lea rdx, [rbp + 0xf0]
mov rcx, rax
call fcn.1400076e0
nop
mov r9, qword [rdi]
xor edx, edx
mov r8, rax
mov rcx, rdi
call qword [r9 + 0x28]
nop
cmp qword [rbp + 0x108], 0x10
jb 0x140006124
mov rcx, qword [rbp + 0xf0]
call fcn.14007f05c
mov qword [rbp + 0x108], shutdown
mov qword [rbp + 0x100], r15
mov byte [rbp + 0xf0], 0
lea rcx, [rbp - 8]
call fcn.140007660
mov qword [rbp - 8], r12
lea rcx, [rbp - 8]
call fcn.1400550f8
mov ebx, 0x8000
mov eax, 0x700
test r14b, r14b
cmovne ebx, eax
test rsi, rsi
je 0x140006171
mov rcx, rsi
call fcn.14007f05c
nop
cmp qword [rbp + 0xe8], 8
jb 0x140006187
mov rcx, qword [rbp + 0xd0]
call fcn.14007f05c
mov qword [rbp + 0xe8], 7
mov qword [rbp + 0xe0], r15
mov word [rbp + 0xd0], r15w
lea rcx, [rbp + 0x110]
call fcn.140005b00
mov eax, ebx
jmp 0x14000632b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [0x1400ed4f0]
test rcx, rcx
je 0x1400062a9
mov rdx, qword [rcx]
call qword [rdx + 0x18]
test al, al
je 0x1400062a9
lea rcx, [0x1400c7600]
call fcn.14036b37a
nop
mov rbx, rax
mov rdi, qword [0x1400ed4f0]
lea rcx, [rsp + 0x70]
call fcn.140007580
nop
mov rdx, rbx
mov rcx, rax
call fcn.140010e60
mov r8, rax
test rax, rax
jne 0x140006215
mov rcx, r15
jmp 0x14000621f
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, r8
and dword [rcx + 0x18], 0xfffff9ff
or dword [rcx + 0x18], 0x800
mov edx, r14d
mov rcx, r8
call fcn.140007060
mov rcx, rax
call fcn.14000e570
lea rdx, [rbp + 0xf0]
mov rcx, rax
call fcn.1400076e0
nop
mov r9, qword [rdi]
mov edx, 3
mov r8, rax
mov rcx, rdi
call qword [r9 + 0x28]
nop
cmp qword [rbp + 0x108], 0x10
jb 0x140006279
mov rcx, qword [rbp + 0xf0]
call fcn.14007f05c
mov qword [rbp + 0x108], shutdown
mov qword [rbp + 0x100], r15
mov byte [rbp + 0xf0], 0
lea rcx, [rbp - 8]
call fcn.140007660
mov qword [rbp - 8], r12
lea rcx, [rbp - 8]
call fcn.1400550f8
nop
test rsi, rsi
je 0x1400062b7
mov rcx, rsi
call fcn.14007f05c
nop
cmp qword [rbp + 0xe8], 8
jb 0x1400062cd
mov rcx, qword [rbp + 0xd0]
call fcn.14007f05c
mov qword [rbp + 0xe8], 7
mov qword [rbp + 0xe0], r15
mov word [rbp + 0xd0], r15w
cmp qword [rbp + 0x148], 8
jb 0x1400062fd
mov rcx, qword [rbp + 0x130]
call fcn.14007f05c
mov rcx, qword [rbp + 0x120]
test rcx, rcx
je 0x14000630f
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp + 0x118]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006326
call qword [0x1400b4580]
mov eax, 0x6001
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret