Function at 0x140039050
Capabilities:
Create process on windows
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1060]
mov eax, 0x1160
call fcn.140088280
sub rsp, rax
mov rax, qword [0x1400f2688]
xor rax, rsp
mov qword [rbp + 0x1050], rax
mov rbx, r8
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x70], r15d
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
lea edx, [r15 + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea ecx, [r15 + 1]
call fcn.140087c10
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140038110]
xor edx, edx
xor ecx, ecx
call fcn.14009791c
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140039591
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.wine_get_version
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rsi, [r15 - 1]
test rax, rax
jne 0x140039202
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 7
mov r8, rsi
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x140039120
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140029620
lea rbx, [rbp + 0x10]
mov r11, qword [rbp + 0x10]
mov r14, qword [rbp + 0x28]
cmp r14, 8
cmovae rbx, r11
mov rax, qword [rbp + 0x20]
cmp rax, 0x11
jb 0x1400391f9
add rax, 0xfffffffffffffff0
lea rdi, [rbx + rax*2]
mov rax, rbx
lea r12, str.retry_non_windows
nop dword [rax + rax]
mov rcx, rdi
sub rcx, rax
sar rcx, 1
mov rdx, r15
je 0x14003919a
cmp word [rax], 0x72
je 0x140039197
cmp rcx, 1
je 0x14003919a
dec rcx
add rax, 2
cmp word [rax], 0x72
jne 0x140039184
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x1400391f9
mov r9d, 0x11
mov rcx, r12
movzx edx, word [rdx]
mov r8d, 0x72
cmp dx, r8w
jb 0x1400391e2
mov r10, rax
sub r10, r12
cmp dx, r8w
ja 0x1400391e2
cmp r9, 1
je 0x1400391e8
dec r9
add rcx, 2
movzx edx, word [r10 + rcx]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x1400391c4
add rax, 2
jmp 0x140039170
sub rax, rbx
sar rax, 1
mov edi, 1
cmp rax, 0xffffffffffffffff
jne 0x14003920a
mov bl, 1
mov edi, 1
jmp 0x14003920c
mov r14, qword [rbp + 0x28]
mov r11, qword [rbp + 0x10]
xor bl, bl
test dil, 1
je 0x14003924d
cmp r14, 8
jb 0x14003924d
lea rdx, [r14*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x140039245
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400395a1
mov rcx, r11
call fcn.140087c4c
lea rdx, [0x1400ba3ac]
mov ecx, 0x65
test bl, bl
je 0x140039264
call fcn.140038340
jmp 0x140039269
call fcn.140038650
test al, al
jne 0x140039504
test bl, bl
je 0x1400394dc
cmp dword [0x1400f23e0], 0x1388
jae 0x1400394dc
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x50]
call fcn.14008a730
mov r8d, 0x400
lea rdx, [rbp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x7c], xmm1
movups xmmword [rbp - 0x6c], xmm1
movups xmmword [rbp - 0x5c], xmm1
movups xmmword [rbp - 0x4c], xmm1
movups xmmword [rbp - 0x3c], xmm1
movups xmmword [rbp - 0x2c], xmm1
mov dword [rbp - 0x1c], eax
mov dword [rbp - 0x80], 0x68
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x850]
call fcn.14008a730
mov qword [rbp - 0x10], r15
mov qword [rbp], r15
mov qword [rbp + 8], 7
lea rax, [rbp + 0x50]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140039306
mov r8, rsi
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.140029620
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rax, 0x13
jb 0x14003936a
lea rdi, [rcx + 0x13]
mov qword [rbp], rdi
lea rbx, [rbp - 0x10]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x10]
lea rcx, [rbx + rcx*2]
mov r8d, 0x26
lea rdx, str.__retry_non_windows
call fcn.14008a080
mov word [rbx + rdi*2], r15w
lea rax, [rbp - 0x10]
jmp 0x14003938e
mov qword [rsp + 0x20], SafeArrayUnaccessData
lea r9, str.__retry_non_windows
movzx r8d, byte [rsp + 0x50]
mov edx, SafeArrayUnaccessData
lea rcx, [rbp - 0x10]
call fcn.140005170
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x1400393ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400393e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400395a7
call fcn.140087c4c
lea rdx, [rbp + 0x30]
mov rdi, qword [rbp + 0x48]
cmp rdi, 8
setae sil
mov rbx, qword [rbp + 0x30]
cmovae rdx, rbx
mov r8, qword [rbp + 0x40]
add r8, r8
lea rcx, [rbp + 0x850]
call fcn.14008a080
lea rax, [rbp + 0x10]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x850]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14003946d
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x68], 0
je 0x1400395ad
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call fcn.140086a68
test eax, eax
jne 0x1400395b8
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
test sil, sil
je 0x140039549
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400394d2
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400395c0
mov rcx, rbx
call fcn.140087c4c
jmp 0x140039549
cmp dword [rsp + 0x68], 0
je 0x1400395c6
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call fcn.140086a68
test eax, eax
jne 0x140039589
jmp 0x140039540
call fcn.14003eb20
cmp dword [rsp + 0x68], 0
je 0x1400395c6
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rsp + 0x68], eax
je 0x1400395d1
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x10], xmm0
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.140086a8c
test eax, eax
jne 0x1400395dc
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rsp + 0x68], 0
jne 0x140039583
xor eax, eax
mov rcx, qword [rbp + 0x1050]
xor rcx, rsp
call fcn.140088250
lea r11, [rsp + 0x1160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400977d0
int3
mov ecx, eax
call fcn.140085910
int3
mov dword [rsp + 0x68], r15d
mov ecx, 6
call fcn.14008594c
int3
call fcn.14008e46c
int3
call fcn.14008e46c
int3
mov ecx, 1
call fcn.14008594c
int3
mov ecx, eax
call fcn.140085910
int3
call fcn.14008e46c
int3
mov ecx, 1
call fcn.14008594c
int3
mov ecx, 5
call fcn.14008594c
int3
mov ecx, 2
call fcn.14008594c
int3