Function at 0x180087740
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push r13
push r15
lea rbp, [rsp - 0x1060]
mov eax, 0x1160
call fcn.18008c1c0
sub rsp, rax
lea rax, [rcx + 0x1000]
mov r15d, r9d
mov rbx, r8
mov r13, rcx
cmp rax, 0x2000
jb 0x180087db2
movabs rsi, 0xffff800000000000
test rsi, rcx
jne 0x180087db2
cmp byte [rcx], 0
jne 0x1800877ae
mov eax, 0xfffffffe
add rsp, 0x1160
pop r15
pop r13
pop rsi
pop rbx
pop rbp
ret
test r9d, 0xffffff80
jne 0x18008779a
mov eax, r9d
and eax, 1
mov dword [rbp + 0x1090], eax
je 0x1800877cf
cmp qword [rbp + 0x10d8], 0
jne 0x18008779a
test rbx, rbx
je 0x18008779a
lea rax, [rdx + 0x1000]
cmp rax, 0x2000
jb 0x18008779a
test rsi, rdx
jne 0x18008779a
mov qword [rsp + 0x1158], r12
mov r12, qword [rbp + 0x10c8]
lea rax, [r12 + 0x1000]
cmp rax, 0x2000
jb 0x180087822
test rsi, r12
jne 0x180087822
test r12, r12
je 0x180087831
cmp byte [r12], 0
jne 0x180087831
mov eax, 0xfffffffe
jmp 0x18008795b
test r12, r12
je 0x180087831
mov eax, 0xfffffffa
jmp 0x18008795b
mov qword [rsp + 0x1150], r14
mov r14, qword [rbp + 0x10d0]
test r14, r14
je 0x180087854
test r12, r12
jne 0x180087854
lea eax, [r12 - 2]
jmp 0x180087953
lea rax, [r14 + 0x1000]
cmp rax, 0x2000
jb 0x180087868
test rsi, r14
je 0x180087877
test r14, r14
je 0x180087877
mov eax, 0xfffffffa
jmp 0x180087953
mov eax, dword [reloc.WS2_32.dll_accept]
cmp eax, 0x10
je 0x1800878a7
cmp eax, 6
je 0x1800878a7
cmp eax, 7
je 0x1800878a7
lea rdx, [0x1800865c0]
lea rcx, [0x1803c1210]
xor r9d, r9d
xor r8d, r8d
call sym.VBoxRT.dll_RTOnceSlow
jmp 0x1800878ad
mov eax, dword [0x1803c1220]
test eax, eax
js 0x180087953
mov qword [rsp + 0x11a8], rdi
test r15b, 0x40
je 0x180087976
mov rcx, r13
call sym.VBoxRT.dll_RTPathHasPath
test al, al
jne 0x180087976
mov rcx, r13
call sym.VBoxRT.dll_RTPathExists
test al, al
jne 0x180087976
lea rdx, str.PATH
mov rcx, rbx
call sym.VBoxRT.dll_RTEnvExistEx
mov rcx, rbx
lea rdx, str.PATH
test al, al
jne 0x18008790b
lea rdx, str.Path
call sym.VBoxRT.dll_RTEnvDupEx
lea r8, [0x1800876f0]
mov r9, r13
mov rdi, rax
lea rax, [rbp + 0x40]
mov dl, 0x3b
mov rcx, rdi
mov qword [rsp + 0x20], rax
call sym.VBoxRT.dll_RTPathTraverseList
mov rcx, rdi
mov ebx, eax
call sym.VBoxRT.dll_RTStrFree
test ebx, ebx
jns 0x180087972
mov eax, 0xffffff9a
cmp ebx, 0xffffffad
cmove ebx, eax
mov eax, ebx
mov rdi, qword [rsp + 0x11a8]
mov r14, qword [rsp + 0x1150]
mov r12, qword [rsp + 0x1158]
add rsp, 0x1160
pop r15
pop r13
pop rsi
pop rbx
pop rbp
ret
lea r13, [rbp + 0x40]
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x68]
call sub.MSVCR100.dll_memset
mov ecx, 0xfffffff6
mov dword [rbp - 0x30], 0x68
mov dword [rbp + 0xc], 0x100
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [rbp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [rbp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor ecx, ecx
mov qword [rbp + 0x30], rax
test r15b, 2
je 0x1800879d0
or dword [rbp + 0xc], 1
mov word [rbp + 0x10], cx
mov rax, qword [rbp + 0x10b0]
mov qword [rsp + 0x50], 0xffffffffffffffff
mov dword [rsp + 0x58], 0xffffffff
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x10b8]
mov edi, ecx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x10c0]
mov rbx, rcx
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x60], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 0x58], rax
lea rax, [rbp + 0x30]
mov qword [rbp - 0x50], rax
nop
mov rcx, qword [rbp + rbx - 0x48]
test rcx, rcx
je 0x180087ab5
lea rax, [rcx + 0x1000]
cmp rax, 0x2000
jb 0x180087b20
test rsi, rcx
jne 0x180087b20
mov edx, dword [rcx]
dec edx
je 0x180087a7d
dec edx
je 0x180087a6c
dec edx
jne 0x180087b04
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x180087a8e
call sym.VBoxRT.dll_RTSocketToNative
jmp 0x180087a92
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x180087a8e
call sym.VBoxRT.dll_RTPipeToNative
jmp 0x180087a92
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x180087a8e
call sym.VBoxRT.dll_RTFileToNative
jmp 0x180087a92
or rax, 0xffffffffffffffff
mov rcx, qword [rbp + rbx - 0x60]
mov qword [rcx], rax
cmp rax, 0xffffffffffffffff
je 0x180087ab5
mov rcx, qword [rcx]
movsxd rax, edi
lea rdx, [rsp + rax*4 + 0x50]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x180087b0e
inc edi
add rbx, 8
cmp edi, 3
jl 0x180087a20
xor edi, edi
lea rsi, [rbp - 0x60]
lea rbx, [rsp + 0x50]
nop
mov eax, dword [rbx]
cmp eax, 0xffffffff
je 0x180087af3
test al, 1
jne 0x180087af3
mov rcx, qword [rsi]
mov edx, 1
mov rcx, qword [rcx]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x180087b2a
inc edi
add rbx, 4
add rsi, 8
cmp edi, 3
jl 0x180087ad0
jmp 0x180087b41
mov eax, 0xfffffffe
jmp 0x18008794b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
jmp 0x18008794b
mov eax, 0xfffffffa
jmp 0x18008794b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov esi, eax
test eax, eax
js 0x180087d6e
mov rcx, qword [rbp + 0x10a0]
lea rdx, [rbp - 0x70]
call sym.VBoxRT.dll_RTEnvQueryUtf16Block
mov esi, eax
test eax, eax
js 0x180087d6e
mov rdx, qword [rbp + 0x1098]
lea rcx, [rsp + 0x68]
xor r8d, r8d
call sym.VBoxRT.dll_RTGetOptArgvToUtf16String
mov esi, eax
test eax, eax
js 0x180087d65
lea r8, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3winprocess_win.cpp
lea rdx, [rsp + 0x60]
mov rcx, r13
call sym.VBoxRT.dll_RTStrToUtf16Tag
mov esi, eax
test eax, eax
js 0x180087d5b
xor eax, eax
cmp dword [rbp + 0x1090], 0
mov ebx, 0x400
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov eax, 0x408
cmovne ebx, eax
test r15b, 0x20
je 0x180087bc5
bts ebx, 0x1b
test r12, r12
jne 0x180087c2f
test r15b, 4
jne 0x180087c2f
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180087d17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov esi, eax
jmp 0x180087d13
lea r8, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3winprocess_win.cpp
lea rdx, [rbp - 0x78]
mov rcx, r12
call sym.VBoxRT.dll_RTStrToUtf16Tag
mov esi, eax
test eax, eax
js 0x180087d51
lea rcx, [0x180235cc3]
test r14, r14
lea r8, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3winprocess_win.cpp
lea rdx, [rbp - 0x68]
cmovne rcx, r14
call sym.VBoxRT.dll_RTStrToUtf16Tag
mov esi, eax
test eax, eax
js 0x180087d0a
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov r13, qword [rbp - 0x68]
mov r14, qword [rbp - 0x78]
test r15b, 4
jne 0x180087cc6
lea rax, [rsp + 0x70]
mov r9, rdi
mov r8, r12
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
mov rdx, r13
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x10a0]
mov rcx, r14
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.1800874a0
mov esi, eax
test eax, eax
jns 0x180087d01
mov dword [rsp + 0x40], r15d
lea rax, [rsp + 0x70]
mov r9, rdi
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
mov r8, r12
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x10a0]
mov rdx, r13
mov rcx, r14
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.180087100
mov esi, eax
mov rcx, qword [rbp - 0x68]
call sym.VBoxRT.dll_RTUtf16Free
mov rcx, qword [rbp - 0x78]
call sym.VBoxRT.dll_RTUtf16Free
test esi, esi
js 0x180087d51
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp + 0x10d8]
test rbx, rbx
je 0x180087d44
mov rdx, qword [rsp + 0x70]
mov ecx, dword [rbp - 0x80]
call fcn.180086750
mov r11d, dword [rbp - 0x80]
mov dword [rbx], r11d
jmp 0x180087d4f
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov rcx, qword [rsp + 0x60]
call sym.VBoxRT.dll_RTUtf16Free
mov rcx, qword [rsp + 0x68]
call sym.VBoxRT.dll_RTUtf16Free
mov rcx, qword [rbp - 0x70]
call sym.VBoxRT.dll_RTEnvFreeUtf16Block
lea rdi, [rbp - 0x60]
lea rbx, [rsp + 0x50]
mov r12d, 3
nop dword [rax]
mov eax, dword [rbx]
cmp eax, 0xffffffff
je 0x180087d9e
test al, 1
jne 0x180087d9e
mov rcx, qword [rdi]
xor r8d, r8d
mov rcx, qword [rcx]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
add rbx, 4
add rdi, 8
dec r12
jne 0x180087d80
mov eax, esi
jmp 0x18008794b
mov eax, 0xfffffffa
add rsp, 0x1160
pop r15
pop r13
pop rsi
pop rbx
pop rbp
ret