Function at 0x140051630
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov rax, qword [0x14006a040]
xor rax, rsp
mov qword [rbp + 0x20], rax
lea rax, [0x140052250]
mov dword [rbp - 0x60], 0x50
xor r12d, r12d
mov qword [rbp - 0x58], rax
xor ecx, ecx
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x5c], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov qword [rbp - 0x18], r12
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x40], xmm0
lea rbx, str.ux_clicker
movdqa xmmword [rbp - 0x30], xmm1
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], rbx
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rbp - 0x48]
mov r9d, 0x80000000
mov rdx, qword [rbp - 0x20]
mov r8, rbx
mov qword [rsp + 0x58], r12
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea ecx, [r12 + 0x20]
mov qword [0x14006ab20], rax
mov rbx, rax
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x14006ab18], rax
mov rcx, rax
test rax, rax
je 0x1400521ef
lea rdx, [0x14006ab10]
mov qword [0x14006aad0], r12
mov qword [rsp + 0x30], rdx
lea rsi, [0x14006aad0]
mov qword [0x14006aadc], r12
lea r8d, [r12 + 1]
mov dword [0x14006aae4], r12d
mov r9, rbx
mov qword [0x14006aaec], r12
xor edx, edx
mov dword [0x14006aaf4], r12d
mov qword [0x14006ab04], r12
mov dword [0x14006aaf8], 1
mov dword [0x14006aae8], 1
mov dword [0x14006aad8], r12d
mov dword [0x14006aafc], 1
mov dword [0x14006ab00], 0x50
mov dword [0x14006ab0c], 1
mov rax, qword [rax]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
js 0x1400521e8
mov rcx, qword [0x14006ab20]
xor edx, edx
mov qword [rsp + 0x190], rdi
mov qword [rsp + 0x198], r13
mov qword [rsp + 0x1a0], r14
mov qword [rsp + 0x160], r15
movaps xmmword [rsp + 0x150], xmm6
movaps xmmword [rsp + 0x140], xmm7
movaps xmmword [rsp + 0x130], xmm8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14006ab20]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x14006aac0]
test rax, rax
je 0x140051819
inc dword [rax + 0x3b0]
mov ecx, 0x40b0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140051835
xor edx, edx
mov rcx, rax
call fcn.140001ab0
jmp 0x140051838
mov rax, r12
cmp qword [0x14006aac0], r12
jne 0x140051848
mov qword [0x14006aac0], rax
mov rcx, rax
call fcn.140009220
mov rax, qword [0x14006aac0]
test rax, rax
jne 0x14005187d
mov r8d, 0xda0
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.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 [0x14006aac0]
or dword [rax + 8], 0x400
lea r13, [rax + 8]
mov qword [r13 + 0x18], r12
test rax, rax
jne 0x1400518b2
mov r8d, 0x997
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.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 [0x14006aac0]
test dword [r13], 0x400
je 0x1400518cd
mov dword [rax + 0x1644], r12d
mov dword [rax + 0x1728], 0x3f800000
mov rdi, qword [0x14006ab20]
lea rcx, [0x14006ab98]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140051ad3
lea rcx, [0x14006ab90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140051ad3
mov rbx, qword [0x14006aac0]
test rbx, rbx
jne 0x14005192b
mov r8d, 0xda0
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.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 [0x14006aac0]
or dword [rbx + 0xc], 0xc06
lea rax, str.imgui_impl_win32
mov qword [rbx + 0xe0], rax
mov qword [0x14006ab88], rdi
cmp dword [rbx + 0x1ef0], r12d
jg 0x140051971
mov r8d, 0x6c7
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdi, qword [0x14006ab88]
mov rax, qword [rbx + 0x1ef8]
mov rcx, qword [rax]
mov qword [rcx + 0x50], rdi
mov qword [rcx + 0x48], rdi
test dword [rbx + 8], 0x400
je 0x140051991
call fcn.14003ff00
lea rax, str.xinput1_4.dll
mov dword [rbx + 0x3c], 9
mov qword [rsp + 0x60], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x68], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x70], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x78], rax
lea rax, str.xinput1_1.dll
mov dword [rbx + 0x40], 0x25
mov dword [rbx + 0x44], 0x27
mov dword [rbx + 0x48], 0x26
mov dword [rbx + 0x4c], 0x28
mov dword [rbx + 0x50], 0x21
mov dword [rbx + 0x54], 0x22
mov dword [rbx + 0x58], 0x24
mov dword [rbx + 0x5c], 0x23
mov dword [rbx + 0x60], 0x2d
mov dword [rbx + 0x64], 0x2e
mov dword [rbx + 0x68], 8
mov dword [rbx + 0x6c], 0x20
mov dword [rbx + 0x70], 0xd
mov dword [rbx + 0x74], 0x1b
mov dword [rbx + 0x78], 0xd
mov dword [rbx + 0x7c], 0x41
mov dword [rbx + 0x80], 0x43
mov dword [rbx + 0x84], 0x56
mov dword [rbx + 0x88], 0x58
mov dword [rbx + 0x8c], 0x59
mov dword [rbx + 0x90], 0x5a
mov rbx, r12
mov qword [rbp - 0x80], rax
nop dword [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140051a9e
inc rbx
cmp rbx, 5
jl 0x140051a80
jmp 0x140051ad3
lea rdx, str.XInputGetCapabilities
mov qword [0x14006ab70], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [0x14006ab78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006ab80], rax
mov rbx, qword [0x14006aac0]
mov rdi, qword [0x14006ab10]
test rbx, rbx
jne 0x140051b07
mov r8d, 0xda0
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.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 [0x14006aac0]
or dword [rbx + 0xc], 0x1008
lea rax, str.imgui_impl_dx9
mov qword [rbx + 0xe8], rax
mov rcx, rdi
mov rax, qword [rdi]
mov qword [0x14006ab58], rdi
call qword [rax + 8]
test dword [rbx + 8], 0x400
je 0x140051ba8
mov rax, qword [0x14006aac0]
test rax, rax
jne 0x140051b62
mov r8d, 0xda6
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___or_ImGui::SetCurrentContext____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [0x14006aac0]
lea rcx, [fcn.14003df40]
mov qword [rax + 0x15f0], rcx
lea rcx, [fcn.14003e080]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x14003e120]
mov qword [rax + 0x1600], rcx
lea rcx, [0x14003e1a0]
mov qword [rax + 0x1608], rcx
lea rcx, [0x14003e2f0]
mov qword [rax + 0x1610], rcx
mov qword [rsp + 0x28], r12
lea r8, [0x1400010c0]
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], r12
lea r8, [0x140001160]
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movss xmm7, dword [0x140062170]
xorps xmm0, xmm0
movss xmm8, dword [0x1400621b4]
xorps xmm6, xmm6
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x10]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140051c47
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140052075
cmp qword [0x14006ab48], r12
jne 0x140051c55
call fcn.14003dca0
call fcn.14003e980
call fcn.140008060
cmp dword [0x14006aba8], r12d
jne 0x140051e07
xor ecx, ecx
call fcn.140032110
mov rax, qword [0x14006aac0]
test rax, rax
jne 0x140051ca0
mov r8d, 0x997
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.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 [0x14006aac0]
mov dword [rax + 0x1678], 0x40800000
mov dword [rax + 0x1644], 0x40c00000
mov dword [rax + 0x16b4], 0x40800000
mov dword [rax + 0x16bc], 0x40800000
mov dword [rax + 0x1660], 0x40800000
mov qword [rax + 0x171c], r12
mov dword [rax + 0x1724], r12d
mov dword [rax + 0x1728], 0x3f800000
mov dword [rax + 0x190c], 0x3dcccccd
mov dword [rax + 0x1910], 0x3dcccccd
mov dword [rax + 0x1914], 0x3dcccccd
mov dword [rax + 0x1918], 0x3f800000
mov dword [rax + 0x191c], 0x3e4ccccd
mov dword [rax + 0x1920], 0x3e4ccccd
mov dword [rax + 0x1924], 0x3e4ccccd
mov dword [rax + 0x1928], 0x3f800000
mov dword [rax + 0x192c], 0x3dcccccd
mov dword [rax + 0x1930], 0x3dcccccd
mov dword [rax + 0x1934], 0x3dcccccd
mov dword [rax + 0x1938], 0x3f800000
mov dword [rax + 0x187c], 0x3e19999a
mov dword [rax + 0x1880], 0x3e19999a
mov dword [rax + 0x1884], 0x3e19999a
mov dword [rax + 0x1888], 0x3f800000
movss xmm0, dword [0x14006a0c0]
ucomiss xmm0, xmm6
jp 0x140051dfb
jne 0x140051dfb
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rbp - 0x78]
call qword [sym.imp.USER32.dll_GetWindowRect]
movd xmm1, dword [rbp - 0x70]
movd xmm0, dword [rbp - 0x6c]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
movss dword [0x14006a0b8], xmm1
subss xmm1, dword [0x14006a0c8]
movss dword [0x14006a0bc], xmm0
subss xmm0, dword [0x14006a0cc]
mulss xmm1, xmm7
mulss xmm0, xmm7
movss dword [0x14006a0c0], xmm1
movss dword [0x14006a0c4], xmm0
mov dword [0x14006aba8], 1
jmp 0x140051e0c
call fcn.1400013c0
call fcn.14000a8b0
mov rcx, qword [0x14006ab10]
mov r9d, 3
mov dword [rsp + 0x30], r12d
xor r8d, r8d
movss dword [rsp + 0x28], xmm8
xor edx, edx
mov dword [rsp + 0x20], r12d
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x14006ab10]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140051eb3
call fcn.14000adb0
mov rbx, qword [0x14006aac0]
cmp dword [rbx + 0x1ef0], r12d
jg 0x140051e80
mov r8d, 0x6c7
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.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 [rbx + 0x1ef8]
mov rcx, qword [rax]
mov rax, r12
add rcx, 0xa8
cmp byte [rcx], r12b
cmovne rax, rcx
mov rcx, rax
call fcn.14003d420
mov rcx, qword [0x14006ab10]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13], 0x400
je 0x140051ff6
call fcn.14001d710
mov rsi, qword [0x14006aac0]
test rsi, rsi
jne 0x140051ef3
mov r8d, 0xda6
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___or_ImGui::SetCurrentContext____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rsi, qword [0x14006aac0]
mov eax, dword [rsi + 0x1628]
mov edi, 1
mov r14d, edi
cmp eax, edi
jle 0x140051f74
test rdi, rdi
js 0x140051f0f
cmp r14d, eax
jl 0x140051f29
mov r8d, 0x6c7
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.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 [rsi + 0x1630]
mov rbx, qword [rax + rdi*8]
test dword [rbx + 4], 0x400
jne 0x140051f63
mov rax, qword [rsi + 0x15c0]
test rax, rax
je 0x140051f50
xor edx, edx
mov rcx, rbx
call rax
mov rax, qword [rsi + 0x1608]
test rax, rax
je 0x140051f63
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rsi + 0x1628]
inc r14d
inc rdi
cmp r14d, eax
jl 0x140051f05
mov edi, 1
mov r14d, edi
cmp eax, edi
jle 0x140051fef
test rdi, rdi
js 0x140051f8a
cmp r14d, eax
jl 0x140051fa4
mov r8d, 0x6c7
lea rdx, str.C:UsersuxDesktopimgui_baseimguiimgui.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 [rsi + 0x1630]
mov rbx, qword [rax + rdi*8]
test dword [rbx + 4], 0x400
jne 0x140051fde
mov rax, qword [rsi + 0x15c8]
test rax, rax
je 0x140051fcb
xor edx, edx
mov rcx, rbx
call rax
mov rax, qword [rsi + 0x1610]
test rax, rax
je 0x140051fde
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rsi + 0x1628]
inc r14d
inc rdi
cmp r14d, eax
jl 0x140051f80
lea rsi, [0x14006aad0]
mov rcx, qword [0x14006ab10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14005206c
mov rcx, qword [0x14006ab10]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14005206c
call fcn.14003ddb0
mov rcx, qword [0x14006ab10]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp eax, 0x8876086c
jne 0x140052067
mov r8d, 0x34
lea rdx, str.C:UsersuxDesktopimgui_baseMain.h
lea rcx, [0x1400548d8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
call fcn.14003dca0
cmp byte [0x14006a0d0], r12b
je 0x140052081
cmp dword [rbp - 8], 0x12
jne 0x140051c10
jmp 0x140052088
mov dword [rbp - 8], 0x12
call fcn.14001df40
call fcn.14003ddb0
mov rcx, qword [0x14006ab58]
movaps xmm8, xmmword [rsp + 0x130]
movaps xmm7, xmmword [rsp + 0x140]
movaps xmm6, xmmword [rsp + 0x150]
mov r15, qword [rsp + 0x160]
mov r14, qword [rsp + 0x1a0]
mov r13, qword [rsp + 0x198]
mov rdi, qword [rsp + 0x190]
test rcx, rcx
je 0x1400520e4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14006ab58], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rax
lea rcx, str.ImGui_Platform
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov rcx, qword [0x14006ab70]
test rcx, rcx
je 0x14005210e
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [0x14006aac0]
mov rcx, rbx
mov qword [0x14006ab70], r12
mov qword [0x14006ab78], r12
mov qword [0x14006ab80], r12
mov qword [0x14006ab88], r12
mov qword [0x14006ab90], r12
mov qword [0x14006ab98], r12
mov dword [0x14006a484], 9
mov byte [0x14006ab68], r12b
mov byte [0x14006a480], 1
call fcn.1400095c0
cmp qword [0x14006aac0], rbx
jne 0x14005216f
mov qword [0x14006aac0], r12
test rbx, rbx
je 0x140052197
mov rcx, rbx
call fcn.14002a4b0
mov rax, qword [0x14006aac0]
test rax, rax
je 0x14005218e
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x14006ab10]
test rcx, rcx
je 0x1400521b0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14006ab10], r12
mov rcx, qword [0x14006ab18]
test rcx, rcx
je 0x1400521c9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14006ab18], r12
mov rcx, qword [0x14006ab20]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
jmp 0x140052237
mov rcx, qword [0x14006ab18]
mov rdx, qword [0x14006ab10]
test rdx, rdx
je 0x140052212
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x14006ab18]
mov qword [0x14006ab10], r12
test rcx, rcx
je 0x140052224
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov qword [0x14006ab18], r12
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, 1
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140052360
add rsp, 0x168
pop r12
pop rsi
pop rbx
pop rbp
ret