Function at 0x140045a90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
xor r12d, r12d
mov dword [rbp + 0x10], 0x50
mov dword [rbp + 0x14], 0x40
lea rax, [0x140048580]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x28], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x40], xmm1
lea r14, [0x14009d5e8]
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], r12
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_RegisterClassExW]
cvttss2si edi, dword [0x1400eda7c]
cvttss2si esi, dword [0x1400eda78]
mov r15d, 1
mov ecx, r15d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss xmm0, dword [0x1400eda7c]
mulss xmm0, dword [0x14009edd4]
subss xmm1, xmm0
cvttss2si ebx, xmm1
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss xmm0, dword [0x1400eda78]
mulss xmm0, dword [0x14009edd4]
subss xmm1, xmm0
cvttss2si ecx, xmm1
mov qword [rsp + 0x58], r12
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov r9d, 0x80000000
mov r8, r14
mov rdx, qword [rbp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x1400ed9b0], rax
mov ecx, 8
call fcn.140084afc
lea rcx, [0x140045910]
mov qword [rax], rcx
mov qword [rbp + 0xb0], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140049530]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14004650d
cmp dword [rsp + 0x68], r12d
je 0x140046503
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp], xmm0
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140046503
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x14009efb0]
movdqu xmmword [rbp + 0x60], xmm1
lea rdx, [rbp + 0x60]
mov rcx, qword [0x1400ed9b0]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rax, qword [0x1400ed9b0]
mov qword [rbp - 0x7c], r12
mov qword [rbp - 0x68], 2
mov qword [rbp - 0x50], 2
mov qword [rsp + 0x70], r12
mov dword [rbp - 0x80], 0x1c
mov dword [rsp + 0x78], 0x3c
mov dword [rsp + 0x7c], r15d
mov dword [rbp - 0x6c], 0x20
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x74], r15
mov qword [rbp - 0x58], r15
mov dword [rbp + 0xb8], 0xb000
mov dword [rbp + 0xbc], 0xa000
lea rax, [0x1400ed9e0]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x50], rax
lea rax, [0x1400ed9d8]
mov qword [rsp + 0x48], rax
lea rax, [0x1400ed9e8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x140045d1d
call fcn.140048610
jmp 0x1400464e6
mov rcx, qword [0x1400ed9e8]
mov rax, qword [rcx]
lea r9, [rbp + 0xc0]
lea r8, [0x14009d370]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x1400ed9d8]
mov rax, qword [rcx]
lea r9, [0x1400ed9f0]
xor r8d, r8d
mov rdx, qword [rbp + 0xc0]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, 0xa
mov rcx, qword [0x1400ed9b0]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400ed9b0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x1400ee9e0]
mov ecx, 0x6280
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x1400ee9e0]
test r8, r8
je 0x140045e05
mov r10d, dword [r8 + 0x3f58]
movsx rax, word [r8 + 0x60f0]
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x140045dfa
lea ecx, [rax + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], r12d
inc word [rdx + 4]
inc dword [r8 + 0x60e8]
mov qword [rbp + 0xb8], r9
lea rax, [rbp + 0xb0]
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], r9
test r9, r9
je 0x140045e32
xor edx, edx
mov rcx, r9
call fcn.140001760
jmp 0x140045e35
mov rax, r12
mov qword [0x1400ee9e0], rax
call fcn.140006540
test rbx, rbx
je 0x140045e4d
mov qword [0x1400ee9e0], rbx
xor ecx, ecx
call fcn.14002a300
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov byte [rsp + 0x7c], 1
mov dword [rbp - 0x78], 2
mov dword [rbp - 0x74], r15d
mov dword [rbp - 0x4c], 0x7f7fffff
mov dword [rbp - 0x40], 0x3f800000
mov dword [rbp - 0x3c], 0x3f800000
mov eax, 0xffff
mov word [rbp - 0x38], ax
mov rbx, qword [0x1400ee9e0]
test rbx, rbx
jne 0x140045ed7
mov r8d, 0x10e1
lea rdx, str.E:CppSPECTRYimgui_masterimgui_masterimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x1400ee9e0]
mov qword [rbx + 0x20], r12
lea rdi, [0x14009a938]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
movss xmm2, dword [0x14009ee84]
lea rdx, str.C:WindowsFontsVerdana.ttf
mov rcx, qword [rbx + 0x38]
call fcn.14002f220
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
movss xmm2, dword [0x14009ee7c]
lea rdx, str.C:WindowsFontsVerdana.ttf
mov rcx, qword [rbx + 0x38]
call fcn.14002f220
mov qword [0x1400ee9f8], rax
mov rcx, qword [rbx + 0x38]
cmp word [0x1400eec00], 0
jne 0x140045f92
movups xmm0, xmmword [0x1400af098]
movaps xmmword [0x1400eec00], xmm0
mov eax, dword [0x1400af0a8]
mov dword [0x1400eec10], eax
lea rdx, [0x1400eec14]
mov r8d, 0x4e00
lea r9, [0x14009a950]
mov r10d, 0xbb7
nop
movsx eax, word [r9]
add r8d, eax
mov word [rdx + 2], r8w
mov word [rdx], r8w
lea r9, [r9 + 2]
lea rdx, [rdx + 4]
sub r10, 1
jne 0x140045f70
mov word [rdx], r12w
lea rax, [0x1400eec00]
mov qword [rsp + 0x20], rax
xor r9d, r9d
movss xmm2, dword [0x14009ee88]
lea rdx, str.c:WindowsFontsVerdana.ttf
call fcn.14002f220
mov qword [0x1400eeb00], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r12
movss xmm3, dword [0x14009ee90]
mov r8d, 0x8b8
lea rdx, [0x1400af0b0]
mov rcx, qword [rbx + 0x38]
call fcn.14002f530
mov qword [0x1400eeb10], rax
mov rax, qword [0x1400ee9e0]
test rax, rax
jne 0x140046018
mov r8d, 0xbf1
lea rdx, str.E:CppSPECTRYimgui_masterimgui_masterimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x1400ee9e0]
mov dword [rax + 0x38f8], 0x40c00000
mov dword [rax + 0x3914], 0x41200000
mov dword [rax + 0x38f0], r12d
mov dword [rax + 0x38f4], 0x41f00000
mov dword [rax + 0x38fc], r12d
mov dword [rax + 0x392c], 0x40800000
mov qword [rax + 0x3934], r12
mov dword [rax + 0x395c], 0x40c00000
mov qword [rax + 0x391c], 0x41000000
movups xmm0, xmmword [0x1400f1d98]
movups xmmword [rax + 0x39ec], xmm0
movups xmm1, xmmword [0x1400f1f18]
movups xmmword [rax + 0x3a1c], xmm1
mov rcx, qword [0x1400ed9b0]
call fcn.14003f3a0
mov rdx, qword [0x1400ed9e0]
mov rcx, qword [0x1400ed9d8]
call fcn.14003f1c0
xor bl, bl
nop word [rax + rax]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14004610e
nop dword [rax]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageW]
movzx ebx, bl
cmp dword [rsp + 0x78], 0x12
cmove ebx, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400460d0
mov rdi, qword [0x1400ee9e0]
test rdi, rdi
je 0x140046128
mov rdi, qword [rdi + 0x98]
test rdi, rdi
jne 0x140046145
jmp 0x14004612b
mov rdi, r12
mov r8d, 0x255
lea rdx, str.E:CppSPECTRYimgui_masterimgui_master_backendsimgui_impl_dx11.cpp
lea rcx, str.bd___nullptr___Did_you_call_ImGui_ImplDX11_Init____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp qword [rdi + 0x48], 0
jne 0x140046151
call fcn.14003eb50
call fcn.1400401b0
call fcn.140009470
cmp byte [0x1400ed9a8], 0
je 0x140046169
call fcn.140046690
cmp byte [0x1400ed9aa], 0
je 0x140046177
call fcn.140047190
call fcn.14000b9f0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov rcx, qword [0x1400ed9e0]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1400ed9f0]
mov edx, r15d
call qword [rax + 0x108]
mov rcx, qword [0x1400ed9e0]
mov rax, qword [rcx]
lea r8, [rbp]
mov rdx, qword [0x1400ed9f0]
call qword [rax + 0x190]
mov rdi, qword [0x1400ee9e0]
cmp dword [rdi + 0x4b08], 0
jg 0x1400461e5
mov r8d, 0x78a
lea rdx, str.E:CppSPECTRYimgui_masterimgui_masterimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rdi + 0x4b10]
mov rcx, qword [rax]
add rcx, 0x48
mov rax, r12
cmp byte [rcx], r12b
cmovne rax, rcx
mov rcx, rax
call fcn.14003e080
mov rcx, qword [0x1400ed9e8]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, r15d
call qword [rax + 0x40]
test bl, bl
je 0x1400460b0
mov rbx, qword [0x1400ee9e0]
test rbx, rbx
je 0x14004623a
mov rdi, qword [rbx + 0x98]
test rdi, rdi
jne 0x14004625e
jmp 0x14004623d
mov rdi, r12
mov r8d, 0x245
lea rdx, str.E:CppSPECTRYimgui_masterimgui_master_backendsimgui_impl_dx11.cpp
lea rcx, str.bd___nullptr___No_renderer_backend_to_shutdown__or_already_shutdown__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x1400ee9e0]
test rbx, rbx
jne 0x140046284
mov r8d, 0x10e1
lea rdx, str.E:CppSPECTRYimgui_masterimgui_masterimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x1400ee9e0]
call fcn.14003f080
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140046298
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400462a6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400462b5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x88], r12
mov qword [rbx + 0x98], r12
and dword [rbx + 0xc], 0xfffffff7
mov r8, qword [0x1400ee9e0]
test r8, r8
je 0x140046333
mov r9d, dword [r8 + 0x3f58]
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140046328
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [0x1400ee9e0]
test r8, r8
je 0x140046356
mov rbx, qword [r8 + 0x90]
test rbx, rbx
jne 0x14004637a
jmp 0x140046359
mov rbx, r12
mov r8d, 0xca
lea rdx, str.E:CppSPECTRYimgui_masterimgui_master_backendsimgui_impl_win32.cpp
lea rcx, str.bd___nullptr___No_platform_backend_to_shutdown__or_already_shutdown__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r8, qword [0x1400ee9e0]
test r8, r8
jne 0x1400463a0
mov r8d, 0x10e1
lea rdx, str.E:CppSPECTRYimgui_masterimgui_masterimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r8, qword [0x1400ee9e0]
lea rdi, [r8 + 8]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400463ba
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8, qword [0x1400ee9e0]
mov qword [rdi + 0x78], r12
mov qword [rdi + 0x88], r12
and dword [rdi + 4], 0xfffffff8
test r8, r8
je 0x14004642e
mov r9d, dword [r8 + 0x3f58]
movsx rdx, word [r8 + 0x60f0]
lea rcx, [rdx*8 + 0x60f4]
add rcx, r8
cmp dword [rcx], r9d
je 0x140046423
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [rax*8 + 0x60f4]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400ee9e0]
mov qword [0x1400ee9e0], rbx
call fcn.140006b70
mov qword [0x1400ee9e0], r12
test rbx, rbx
je 0x1400464d4
mov rcx, rbx
call fcn.140021bd0
mov r8, qword [0x1400ee9e0]
test r8, r8
je 0x1400464cb
mov r9d, dword [r8 + 0x3f58]
movsx r10, word [r8 + 0x60f0]
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x1400464c0
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], r12d
inc word [rdx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.140048610
mov rcx, qword [0x1400ed9b0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.USER32.dll_UnregisterClassW]
nop
cmp dword [rsp + 0x68], 0
je 0x14004651e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ecx, r15d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x68], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
add rsp, 0x170
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
jmp 0x140045a90