Function at 0x140045a00
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, [0x140048340]
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, [0x14009d5c8]
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], r12
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_RegisterClassExW]
cvttss2si edi, dword [0x1400edb8c]
cvttss2si esi, dword [0x1400edb88]
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 [0x1400edb8c]
mulss xmm0, dword [0x14009ede4]
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 [0x1400edb88]
mulss xmm0, dword [0x14009ede4]
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 [0x1400edac0], rax
mov ecx, 8
call fcn.1400848ec
lea rcx, [0x1400457d0]
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, [0x1400492e0]
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 0x14004647d
cmp dword [rsp + 0x68], r12d
je 0x140046473
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp], xmm0
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140046473
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x14009efb0]
movdqu xmmword [rbp + 0x60], xmm1
lea rdx, [rbp + 0x60]
mov rcx, qword [0x1400edac0]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rax, qword [0x1400edac0]
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, [0x1400edaf0]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x50], rax
lea rax, [0x1400edae8]
mov qword [rsp + 0x48], rax
lea rax, [0x1400edaf8]
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 0x140045c8d
call fcn.1400483d0
jmp 0x140046456
mov rcx, qword [0x1400edaf8]
mov rax, qword [rcx]
lea r9, [rbp + 0xc0]
lea r8, [0x14009d370]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x1400edae8]
mov rax, qword [rcx]
lea r9, [0x1400edb00]
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 [0x1400edac0]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400edac0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x1400eeaf0]
mov ecx, 0x6280
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x1400eeaf0]
test r8, r8
je 0x140045d75
mov r10d, dword [r8 + 0x3f58]
movsx rax, word [r8 + 0x60f0]
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x140045d6a
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 0x140045da2
xor edx, edx
mov rcx, r9
call fcn.140001760
jmp 0x140045da5
mov rax, r12
mov qword [0x1400eeaf0], rax
call fcn.140006540
test rbx, rbx
je 0x140045dbd
mov qword [0x1400eeaf0], 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 [0x1400eeaf0]
test rbx, rbx
jne 0x140045e47
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 [0x1400eeaf0]
mov qword [rbx + 0x20], r12
lea rdi, [0x14009a938]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
movss xmm2, dword [0x14009ee94]
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 [0x14009ee8c]
lea rdx, str.C:WindowsFontsVerdana.ttf
mov rcx, qword [rbx + 0x38]
call fcn.14002f220
mov qword [0x1400eeb08], rax
mov rcx, qword [rbx + 0x38]
cmp word [0x1400eed90], 0
jne 0x140045f02
movups xmm0, xmmword [0x1400af098]
movaps xmmword [0x1400eed90], xmm0
mov eax, dword [0x1400af0a8]
mov dword [0x1400eeda0], eax
lea rdx, [0x1400eeda4]
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 0x140045ee0
mov word [rdx], r12w
lea rax, [0x1400eed90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
movss xmm2, dword [0x14009ee98]
lea rdx, str.c:WindowsFontsVerdana.ttf
call fcn.14002f220
mov qword [0x1400eec10], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r12
movss xmm3, dword [0x14009eea0]
mov r8d, 0x9c0
lea rdx, [0x1400af0b0]
mov rcx, qword [rbx + 0x38]
call fcn.14002f530
mov qword [0x1400eec20], rax
mov rax, qword [0x1400eeaf0]
test rax, rax
jne 0x140045f88
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 [0x1400eeaf0]
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 [0x1400f1f28]
movups xmmword [rax + 0x39ec], xmm0
movups xmm1, xmmword [0x1400f20a8]
movups xmmword [rax + 0x3a1c], xmm1
mov rcx, qword [0x1400edac0]
call fcn.14003f3a0
mov rdx, qword [0x1400edaf0]
mov rcx, qword [0x1400edae8]
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 0x14004607e
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 0x140046040
mov rdi, qword [0x1400eeaf0]
test rdi, rdi
je 0x140046098
mov rdi, qword [rdi + 0x98]
test rdi, rdi
jne 0x1400460b5
jmp 0x14004609b
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 0x1400460c1
call fcn.14003eb50
call fcn.1400401b0
call fcn.140009470
cmp byte [0x1400edab8], 0
je 0x1400460d9
call fcn.140046600
cmp byte [0x1400edaba], 0
je 0x1400460e7
call fcn.140046f90
call fcn.14000b9f0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov rcx, qword [0x1400edaf0]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1400edb00]
mov edx, r15d
call qword [rax + 0x108]
mov rcx, qword [0x1400edaf0]
mov rax, qword [rcx]
lea r8, [rbp]
mov rdx, qword [0x1400edb00]
call qword [rax + 0x190]
mov rdi, qword [0x1400eeaf0]
cmp dword [rdi + 0x4b08], 0
jg 0x140046155
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 [0x1400edaf8]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, r15d
call qword [rax + 0x40]
test bl, bl
je 0x140046020
mov rbx, qword [0x1400eeaf0]
test rbx, rbx
je 0x1400461aa
mov rdi, qword [rbx + 0x98]
test rdi, rdi
jne 0x1400461ce
jmp 0x1400461ad
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 [0x1400eeaf0]
test rbx, rbx
jne 0x1400461f4
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 [0x1400eeaf0]
call fcn.14003f080
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140046208
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140046216
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140046225
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 [0x1400eeaf0]
test r8, r8
je 0x1400462a3
mov r9d, dword [r8 + 0x3f58]
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140046298
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 [0x1400eeaf0]
test r8, r8
je 0x1400462c6
mov rbx, qword [r8 + 0x90]
test rbx, rbx
jne 0x1400462ea
jmp 0x1400462c9
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 [0x1400eeaf0]
test r8, r8
jne 0x140046310
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 [0x1400eeaf0]
lea rdi, [r8 + 8]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14004632a
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8, qword [0x1400eeaf0]
mov qword [rdi + 0x78], r12
mov qword [rdi + 0x88], r12
and dword [rdi + 4], 0xfffffff8
test r8, r8
je 0x14004639e
mov r9d, dword [r8 + 0x3f58]
movsx rdx, word [r8 + 0x60f0]
lea rcx, [rdx*8 + 0x60f4]
add rcx, r8
cmp dword [rcx], r9d
je 0x140046393
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 [0x1400eeaf0]
mov qword [0x1400eeaf0], rbx
call fcn.140006b70
mov qword [0x1400eeaf0], r12
test rbx, rbx
je 0x140046444
mov rcx, rbx
call fcn.140021bd0
mov r8, qword [0x1400eeaf0]
test r8, r8
je 0x14004643b
mov r9d, dword [r8 + 0x3f58]
movsx r10, word [r8 + 0x60f0]
lea rdx, [r8 + 0x60f4]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140046430
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.1400483d0
mov rcx, qword [0x1400edac0]
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 0x14004648e
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 0x140045a00