Function at 0x1400597d0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rsp + 0x2f8], rbx
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r15, r9
mov qword [rsp + 0x70], r8
mov rdi, rdx
mov r13, rcx
mov rsi, qword [rbp + 0x210]
mov r14, qword [rbp + 0x218]
mov rax, qword [rbp + 0x220]
mov qword [rsp + 0x50], rax
mov rdx, rcx
lea rcx, [rbp + 0x90]
call fcn.140058f70
nop
mov rbx, qword [rdi]
mov rdi, qword [rdi + 8]
cmp rbx, rdi
je 0x1400598f0
mov r8d, 1
lea rdx, [0x140101a80]
lea rcx, [rbp + 0x90]
call fcn.140003560
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140058f70
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.140004500
nop
mov rax, qword [rbp + 0x28]
cmp rax, 0x10
jb 0x1400598cf
inc rax
mov rcx, qword [rbp + 0x10]
cmp rax, 0x1000
jb 0x1400598ca
test cl, 0x1f
jne 0x1400598ea
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1400598e4
sub rcx, rax
cmp rcx, 8
jb 0x1400598de
cmp rcx, 0x27
ja 0x1400598d8
mov rcx, rax
call fcn.1400369b0
add rbx, 0x20
jmp 0x14005984b
call fcn.14006ef04
int3
call fcn.14006ef04
int3
call fcn.14006ef04
int3
call fcn.14006ef04
int3
mov qword [rbp + 0x88], 7
xor ebx, ebx
mov qword [rbp + 0x80], rbx
mov word [rbp + 0x70], bx
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x90]
call fcn.14005c380
mov r12d, ebx
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x60], rbx
mov word [rbp + 0x50], bx
cmp qword [r13 + 0x10], 0x104
jbe 0x140059a00
mov rdx, r13
lea rcx, [rbp + 0x100]
call fcn.14005ca20
nop
cmp byte [rbp + 0x198], bl
je 0x1400599f4
lea rdx, [rbp + 0x50]
mov rcx, r13
call fcn.14005c380
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x100]
call fcn.14005cc20
mov rbx, qword [rax + 0x10]
mov rax, qword [rbp + 0x28]
cmp rax, 0x10
jb 0x1400599cb
inc rax
mov rcx, qword [rbp + 0x10]
cmp rax, 0x1000
jb 0x1400599c6
test cl, 0x1f
je 0x140059999
call fcn.14006ef04
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400599a8
call fcn.14006ef04
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400599b7
call fcn.14006ef04
int3
cmp rcx, 0x27
jbe 0x1400599c3
call fcn.14006ef04
int3
mov rcx, rax
call fcn.1400369b0
test rbx, rbx
jne 0x1400599e4
lea r8d, [rbx + 4]
lea rdx, str..EXE
lea rcx, [rbp + 0x50]
call fcn.140058830
lea r12, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae r12, qword [rbp + 0x50]
xor ebx, ebx
lea rcx, [rbp + 0x100]
call fcn.14005cae0
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [rbp - 0x80], 0x68
mov qword [rbp - 0x78], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x44], 0x80
mov word [rbp - 0x3e], bx
mov qword [rbp - 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
xor dil, dil
test r15, r15
je 0x140059a83
mov rcx, qword [r15]
call fcn.140023e70
mov rdx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
xor eax, eax
mov dword [rsp + 0x20], eax
lea r9, [rbp - 0x30]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dil, 1
mov edx, 1
mov rcx, r15
call fcn.14005a290
xor r15d, r15d
jmp 0x140059ad5
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x140059ace
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x30]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dil, 1
jmp 0x140059ad5
xor r15d, r15d
mov qword [rbp - 0x30], r15
test rsi, rsi
je 0x140059ae4
mov rcx, qword [rsi]
call fcn.140043dd0
jmp 0x140059aff
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x140059b2c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x28]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dil, 1
jmp 0x140059b30
mov qword [rbp - 0x28], r15
test r14, r14
je 0x140059b3f
mov rcx, qword [r14]
call fcn.140043dd0
jmp 0x140059b5a
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x140059b87
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x20]
mov r8, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov dil, 1
jmp 0x140059b8b
mov qword [rbp - 0x20], r15
test rsi, rsi
je 0x140059b9d
mov edx, 2
mov rcx, rsi
call fcn.14005a290
test r14, r14
je 0x140059baf
mov edx, 2
mov rcx, r14
call fcn.14005a290
test dil, dil
je 0x140059bbb
or dword [rbp - 0x44], 0x100
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], r15
mov word [rbp + 0x30], r15w
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.14005c380
cmp qword [rbp + 0x40], 0
jne 0x140059be6
mov rbx, r15
jmp 0x140059bf4
lea rbx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rbx, qword [rbp + 0x30]
mov r14, r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
je 0x140059cce
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140059310
lea rcx, [rsp + 0x58]
cmp rcx, rax
je 0x140059c54
mov rsi, qword [rax]
mov qword [rsp + 0x58], rsi
mov rcx, qword [rax + 8]
mov qword [rsp + 0x60], rcx
mov r15, qword [rax + 0x10]
mov qword [rsp + 0x68], r15
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
jmp 0x140059c59
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140059cc9
mov rax, qword [rbp + 0x20]
sub rax, rcx
sar rax, 1
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x140059c81
call fcn.14006ef04
int3
add rax, rax
cmp rax, 0x1000
jb 0x140059cc4
test cl, 0x1f
je 0x140059c97
call fcn.14006ef04
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140059ca6
call fcn.14006ef04
int3
sub rcx, rax
cmp rcx, 8
jae 0x140059cb5
call fcn.14006ef04
int3
cmp rcx, 0x27
jbe 0x140059cc1
call fcn.14006ef04
int3
mov rcx, rax
call fcn.1400369b0
mov r14, rsi
jmp 0x140059cd3
mov rsi, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov ecx, 0x8000000
test rax, rax
mov eax, 0
cmovne ecx, eax
mov r8d, ecx
bts r8d, 0xa
test r14, r14
cmove r8d, ecx
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae rdx, qword [rbp + 0x70]
movzx eax, dil
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140059d52
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140059d61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140059d70
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140059ec9
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x20
call fcn.140036960
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140059dbe
mov edi, dword [rbp]
mov rbx, qword [rbp - 0x10]
mov rcx, rax
call fcn.14005ae00
lea rax, vtable.Poco::ProcessHandleImpl.0
mov qword [r14], rax
mov qword [r14 + 0x10], rbx
mov dword [r14 + 0x18], edi
xor ebx, ebx
jmp 0x140059dc3
xor ebx, ebx
mov r14d, ebx
test rsi, rsi
je 0x140059e31
sub r15, rsi
sar r15, 1
movabs rax, 0x7fffffffffffffff
cmp r15, rax
jbe 0x140059de3
call fcn.14006ef04
int3
lea rax, [r15 + r15]
cmp rax, 0x1000
jb 0x140059e28
test sil, 0x1f
je 0x140059dfb
call fcn.14006ef04
int3
mov rax, qword [rsi - 8]
cmp rax, rsi
jb 0x140059e0a
call fcn.14006ef04
int3
sub rsi, rax
cmp rsi, 8
jae 0x140059e19
call fcn.14006ef04
int3
cmp rsi, 0x27
jbe 0x140059e25
call fcn.14006ef04
int3
mov rsi, rax
mov rcx, rsi
call fcn.1400369b0
nop
mov r8, qword [rbp + 0x48]
cmp r8, 8
jb 0x140059e4b
inc r8
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.1400046b0
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], rbx
mov word [rbp + 0x30], bx
mov r8, qword [rbp + 0x68]
cmp r8, 8
jb 0x140059e75
inc r8
mov rdx, qword [rbp + 0x50]
lea rcx, [rbp + 0x50]
call fcn.1400046b0
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x60], rbx
mov word [rbp + 0x50], bx
mov r8, qword [rbp + 0x88]
cmp r8, 8
jb 0x140059ea2
inc r8
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp + 0x70]
call fcn.1400046b0
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], rbx
mov word [rbp + 0x70], bx
lea rcx, [rbp + 0x90]
call fcn.1400036b0
mov rax, r14
jmp 0x140059f19
mov qword [rbp + 0x28], 0xf
xor eax, eax
mov qword [rbp + 0x20], rax
mov byte [rbp + 0x10], al
lea r8d, [rax + 0x15]
lea rdx, str.Cannot_launch_process
lea rcx, [rbp + 0x10]
call fcn.140003430
nop
xor r9d, r9d
mov r8, r13
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0xb0]
call fcn.14005b440
lea rdx, [0x14012d620]
lea rcx, [rbp + 0xb0]
call fcn.140066028
nop
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140063ed0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret