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

Disassembly:
push rbp
push rbx
push r14
push r15
lea rbp, [rsp - 0x1098]
mov eax, 0x1198
call fcn.1400a1cf0
sub rsp, rax
mov rax, qword [0x1401360c0]
xor rax, rsp
mov qword [rbp + 0x1060], rax
xor r15d, r15d
mov rbx, r8
mov r14d, 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.1400a1024
lea rcx, [rsp + 0x68]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140052b20]
xor ecx, ecx
mov dword [rsp + 0x20], r15d
xor edx, edx
call fcn.1400b5044
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140051713
mov qword [rsp + 0x11c8], rdi
lea rcx, [0x140116ad8]
mov qword [rsp + 0x11c0], rsi
mov qword [rsp + 0x1190], r12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.wine_get_version
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdi, [r15 - 1]
test rax, rax
jne 0x14005131a
xorps xmm0, xmm0
mov qword [rbp + 0x30], r15
movups xmmword [rbp + 0x20], xmm0
lea r14d, [r15 + 1]
mov qword [rbp + 0x38], r15
mov r8, rdi
nop
inc r8
cmp word [rbx + r8*2], r15w
jne 0x140051260
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.140006530
mov rsi, qword [rbp + 0x38]
lea r11, [rbp + 0x20]
mov r10, qword [rbp + 0x20]
cmp rsi, 7
mov rax, qword [rbp + 0x30]
cmova r11, r10
cmp rax, 0x11
jb 0x14005130e
add rax, 0xfffffffffffffff0
lea r12, str.retry_non_windows
lea rbx, [r11 + rax*2]
mov rax, r11
nop word [rax + rax]
mov rcx, rbx
mov rdx, r15
sub rcx, rax
sar rcx, 1
je 0x1400512d9
cmp word [rax], 0x72
je 0x1400512d6
cmp rcx, r14
je 0x1400512d9
add rax, 2
dec rcx
cmp word [rax], 0x72
jne 0x1400512c4
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x14005130e
mov r9, rax
mov r8d, 0x11
sub r9, r12
mov rdx, r12
movzx ecx, word [rdx + r9]
cmp cx, word [rdx]
jne 0x140051314
add rdx, 2
sub r8, r14
jne 0x1400512f0
sub rax, r11
sar rax, 1
cmp rax, rdi
jne 0x140051322
movzx ebx, r14b
jmp 0x140051324
add rax, 2
jmp 0x1400512b0
mov rsi, qword [rbp + 0x38]
mov r10, qword [rbp + 0x20]
xor bl, bl
mov r12, qword [rsp + 0x1190]
test r14b, 1
je 0x14005136d
cmp rsi, 7
jbe 0x14005136d
lea rdx, [rsi*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x140051365
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051723
mov rcx, r10
call fcn.1400a0ff0
test bl, bl
je 0x140051378
call fcn.140051890
jmp 0x14005137d
call fcn.140051b90
movaps xmmword [rsp + 0x1180], xmm6
movaps xmmword [rsp + 0x1170], xmm7
test al, al
jne 0x14005168d
test bl, bl
je 0x14005160e
cmp dword [0x140136f20], 0x1388
jae 0x14005160e
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x800
call fcn.1400cc3a0
mov r8d, 0x400
lea rdx, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm1, xmm1
mov dword [rbp - 0x70], 0x68
xor eax, eax
lea rcx, [rbp + 0x860]
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
xor edx, edx
mov dword [rbp - 0xc], eax
mov r8d, 0x800
movups xmmword [rsp + 0x78], xmm0
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
movups xmmword [rbp - 0x1c], xmm1
call fcn.1400cc3a0
xorps xmm0, xmm0
mov qword [rbp + 0x10], r15
movups xmmword [rbp], xmm0
mov qword [rbp + 0x18], r15
lea rax, [rbp + 0x60]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x140051430
mov r8, rdi
lea rdx, [rbp + 0x60]
lea rcx, [rbp]
call fcn.140006530
mov rcx, qword [rbp + 0x18]
mov rdi, qword [rbp + 0x10]
mov rax, rcx
sub rax, rdi
cmp rax, 0x13
jb 0x140051495
cmp rcx, 7
lea rax, [rdi + 0x13]
lea rbx, [rbp]
mov qword [rbp + 0x10], rax
cmova rbx, qword [rbp]
lea rdx, str.__retry_non_windows
mov r8d, 0x26
lea rcx, [rbx + rdi*2]
call fcn.1400cbd00
lea rax, [rbp]
mov word [rbx + rdi*2 + 0x26], r15w
jmp 0x1400514b9
movzx r8d, byte [rsp + 0x50]
lea r9, str.__retry_non_windows
mov edx, SafeArrayUnaccessData
mov qword [rsp + 0x20], SafeArrayUnaccessData
lea rcx, [rbp]
call fcn.14004e110
movups xmm7, xmmword [rax]
movups xmm6, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rbp + 0x18]
movups xmmword [rbp + 0x40], xmm7
movups xmmword [rbp + 0x50], xmm6
cmp rdx, 7
jbe 0x140051518
mov rcx, qword [rbp]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051513
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051729
call fcn.1400a0ff0
movdqa xmm0, xmm6
lea rdx, [rbp + 0x40]
psrldq xmm0, 8
lea rcx, [rbp + 0x860]
movq rdi, xmm0
movq rbx, xmm7
movq r8, xmm6
cmp rdi, 7
cmova rdx, rbx
add r8, r8
call fcn.1400cbd00
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x860]
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400515a2
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x68], r15d
je 0x140051735
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rbp]
movdqa xmmword [rbp], xmm0
call fcn.1400a0360
test eax, eax
jne 0x140051735
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
cmp rdi, 7
jbe 0x14005163d
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140051604
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005172f
mov rcx, rbx
call fcn.1400a0ff0
jmp 0x14005163d
cmp dword [rsp + 0x68], r15d
je 0x140051746
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rbp]
movdqa xmmword [rbp], xmm0
call fcn.1400a0360
test eax, eax
jne 0x140051746
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [rsp + 0x68], r15d
jne 0x140051740
movaps xmm6, xmmword [rsp + 0x1180]
xor eax, eax
movaps xmm7, xmmword [rsp + 0x1170]
mov rsi, qword [rsp + 0x11c0]
mov rdi, qword [rsp + 0x11c8]
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.1400a0fd0
add rsp, 0x1198
pop r15
pop r14
pop rbx
pop rbp
ret
mov rax, qword [0x14014a3b8]
test rax, rax
je 0x1400516cd
cmp dword [rax + 0x330], 1
jne 0x1400516c6
lea rcx, [rax + 0x10]
call fcn.14006e640
test eax, eax
jle 0x1400516bf
lea ecx, [rax + rax*4]
lea ecx, [rcx*8 + 0xfa]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x14014a3b8]
mov byte [rax + 0x4b9], 1
cmp dword [rsp + 0x68], r15d
je 0x140051746
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rsp + 0x68], eax
je 0x1400516fd
movaps xmm0, xmmword [rsp + 0x60]
lea rcx, [rbp]
xor edx, edx
movdqa xmmword [rbp], xmm0
call fcn.1400a0384
test eax, eax
jne 0x140051708
jmp 0x140051634
mov ecx, 5
call fcn.14009fef0
int3
mov ecx, 2
call fcn.14009fef0
int3
mov ecx, 6
mov dword [rsp + 0x68], r15d
call fcn.14009fef0
int3
call fcn.1400a80e0
int3
call fcn.1400a80e0
int3
call fcn.1400a80e0
int3
mov ecx, 1
call fcn.14009fef0
int3
call fcn.1400b4ee0
int3
mov ecx, 1
call fcn.14009fef0
int3