Function at 0x18003ace0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x180059080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rcx
xor r12d, r12d
mov qword [rcx], r12
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
movups xmmword [rcx + 0x18], xmm0
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
movups xmmword [rcx + 0x48], xmm0
lea rsi, [rcx + 0x58]
mov qword [rsi], r12
lea r15, [rcx + 0x60]
mov qword [r15], r12
lea rdi, [rcx + 0x68]
mov qword [rdi], r12
mov qword [rcx + 0x70], r12
mov qword [rcx + 0x78], r12
mov qword [rcx + 0x80], r12
mov qword [rcx + 0x88], r12
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x90], xmm0
lea ecx, [r12 + 1]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x94], xmm0
mov word [rbx + 0x98], r12w
mov byte [rbx + 0x9a], 1
mov qword [rbx + 0x9c], r12
mov qword [rbx + 0xa8], r12
lea rdx, [0x18004fcd0]
lea rcx, str.CEF_OSC_WIDGET
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbx], rax
lea edx, [r12 - 0x14]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x20
mov r8d, eax
lea edx, [r12 - 0x14]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_SetWindowLongA]
xor eax, eax
mov qword [rbp + 0x23], rax
mov qword [rbp + 0x1f], 0xffffffffffffffff
mov qword [rbp + 0x27], 0xffffffffffffffff
lea rdx, [rbp + 0x1f]
mov rcx, qword [rbx]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
lea r9d, [r12 + 2]
mov r8b, 0xff
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [r12 - 1]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_SetWindowPos]
cmp qword [rbx], r12
je 0x18003b05b
lea ecx, [r12 + 0x10]
call fcn.180040820
test rax, rax
je 0x18003ae5a
xorps xmm0, xmm0
movups xmmword [rax], xmm0
jmp 0x18003ae5d
mov rax, r12
mov qword [rbx + 0xa8], rax
mov qword [rbp - 0x35], r12
mov qword [rbp - 0x21], 2
mov qword [rbp - 9], 2
mov qword [rbp - 0x49], r12
mov dword [rbp - 0x39], 0x1c
mov dword [rbp - 0x41], 0x3c
mov dword [rbp - 0x3d], 1
mov dword [rbp - 0x25], 0x20
mov rax, qword [rbx]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x2d], 1
mov qword [rbp - 0x11], 1
mov dword [rbp + 7], 0xb000
mov dword [rbp + 0xb], 0xa000
mov qword [rsp + 0x58], r15
lea rax, [rbp + 0x17]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x49]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call sub.d3d11.dll_D3D11CreateDeviceAndSwapChain
test eax, eax
jne 0x18003b05b
mov qword [rbp - 0x59], r12
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea r9, [rbp - 0x59]
lea r8, [0x18004fdf8]
xor edx, edx
call qword [rax + 0x48]
mov rdx, qword [rbp - 0x59]
test rdx, rdx
je 0x18003af47
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea r9, [rbx + 0x70]
xor r8d, r8d
call qword [rax + 0x48]
mov rdx, qword [rbp - 0x59]
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov edx, 1
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, rbx
call fcn.18003b410
mov ecx, 0x10
call fcn.180040820
test rax, rax
je 0x18003af8e
mov qword [rax], rbx
lea rcx, [0x18003baf0]
mov qword [rax + 8], rcx
jmp 0x18003af91
mov rax, r12
mov qword [rbp + 7], rax
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x18003acb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x18003b091
cmp dword [rbp - 0x51], 0
je 0x18003b086
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp + 7]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x18003b086
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x59], xmm0
lea ecx, [rax + 0x10]
call fcn.180040820
test rax, rax
je 0x18003b00d
mov qword [rax], rbx
lea rcx, [0x18003b1d0]
mov qword [rax + 8], rcx
jmp 0x18003b010
mov rax, r12
mov qword [rbp + 7], rax
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x18003acb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x18003b0ab
cmp dword [rbp - 0x51], 0
je 0x18003b0a0
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp + 7]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x18003b0a0
mov rax, rbx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.180040280
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x51], r12d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x51], r12d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3