Function at 0x140045510
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140086040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov ecx, 0x18
call fcn.14006b2cc
movups xmm0, xmmword [0x1400a3920]
movups xmmword [rax], xmm0
lea rcx, [0x140045300]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0x37], rax
lea rcx, [rbp + 0x2f]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140045900]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x27], rax
test rax, rax
je 0x140045888
cmp dword [rbp + 0x2f], edi
je 0x14004587c
movaps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14004587c
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x27], xmm0
mov ecx, 0xd570
call fcn.14006b2cc
mov rbx, rax
mov r8d, 0xd560
lea rdx, [0x1400963c0]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [0x140055ed0]
mov qword [rbx + 0xd560], rax
mov qword [rbp + 0x37], rbx
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140045930]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x27], rax
test rax, rax
je 0x14004586d
cmp dword [rbp + 0x2f], edi
je 0x140045861
movaps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140045861
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x27], xmm0
mov ecx, 8
call fcn.14006b2cc
lea rcx, [0x140056310]
mov qword [rax], rcx
mov qword [rbp + 0x37], rax
lea rcx, [rbp + 0x2f]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140045960]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x27], rax
test rax, rax
je 0x140045852
cmp dword [rbp + 0x2f], edi
je 0x140045846
movaps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140045846
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x27], xmm0
mov dword [rbp - 0x29], 0x50
mov dword [rbp - 0x25], 0x40
lea rax, [0x140051760]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp - 0x11], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbp - 9], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbp - 1], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 7], xmm0
lea rbx, str.OverlayWindowClass
mov qword [rbp + 0x17], rbx
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbp + 0x1f], rax
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov qword [rsp + 0x58], rdi
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov eax, dword [0x140096360]
mov dword [rsp + 0x38], eax
mov eax, dword [0x140096328]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov r9d, 0x90000000
lea r8, str.OverlayWindowTitle
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x140096260], rax
mov edx, 0xffffffec
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowLongA]
bts eax, 0x13
mov r8d, eax
mov edx, 0xffffffec
mov rcx, qword [0x140096260]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, qword [0x140096260]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x140078c30]
movdqu xmmword [rbp + 0x27], xmm0
lea rdx, [rbp + 0x27]
mov rcx, qword [0x140096260]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov edx, 5
mov rcx, qword [0x140096260]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140096260]
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.140051820
test eax, eax
jns 0x14004583f
lea rcx, str.Failed_to_start_gui_n
call fcn.140001b60
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14006ac20
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140057640
jmp 0x14004581e
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x2f], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x2f], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x2f], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3