Function at 0x140043610
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 [0x140065040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov ecx, 0x20
call fcn.14005007c
movups xmm0, xmmword [0x1402b6fa0]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402b6fb0]
movsd qword [rax + 0x10], xmm1
lea rcx, [0x140043020]
mov qword [rax + 0x18], 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, [0x140043b70]
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 0x1400438ed
cmp dword [rbp + 0x2f], edi
je 0x1400438e1
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 0x1400438e1
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x27], xmm0
mov ecx, 0x10
call fcn.14005007c
lea rcx, [0x140047280]
mov qword [rax + 8], 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, [0x140043ba0]
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 0x1400438d2
cmp dword [rbp + 0x2f], edi
je 0x1400438c6
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 0x1400438c6
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x27], xmm0
mov dword [rbp - 0x29], 0x50
mov dword [rbp - 0x25], 0x40
lea rax, [0x140046380]
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 [0x1402b6f64]
mov dword [rsp + 0x38], eax
mov eax, dword [0x1402b6f5c]
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 [0x1402b6ef0], 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 [0x1402b6ef0]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, qword [0x1402b6ef0]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x14005b0c0]
movdqu xmmword [rbp + 0x27], xmm0
lea rdx, [rbp + 0x27]
mov rcx, qword [0x1402b6ef0]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov edx, 5
mov rcx, qword [0x1402b6ef0]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1402b6ef0]
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.140046440
test eax, eax
jns 0x1400438bf
lea rcx, str.Failed_to_start_gui_n
call fcn.140001640
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14004faf0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.1400485f0
jmp 0x14004389e
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