Function at 0x140051aa0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x14006a010]
xor rax, rsp
mov qword [rbp + 0x10], rax
lea rax, [0x140052500]
mov dword [rbp - 0x70], 0x50
xor r12d, r12d
mov qword [rbp - 0x68], rax
xor ecx, ecx
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x6c], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov qword [rbp - 0x28], r12
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x50], xmm0
lea rbx, str.Did_you_already_drink_water_
movdqa xmmword [rbp - 0x40], xmm1
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x30], rbx
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rbp - 0x58]
mov r9d, 0x80000000
mov rdx, qword [rbp - 0x30]
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 [0x14006aac0], rax
mov rbx, rax
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x14006aab8], rax
mov rcx, rax
test rax, rax
je 0x14005249f
lea rdx, [0x14006aab0]
mov qword [0x14006aa70], r12
mov qword [rsp + 0x30], rdx
lea rsi, [0x14006aa70]
mov qword [0x14006aa7c], r12
lea r8d, [r12 + 1]
mov dword [0x14006aa84], r12d
mov r9, rbx
mov qword [0x14006aa8c], r12
xor edx, edx
mov dword [0x14006aa94], r12d
mov qword [0x14006aaa4], r12
mov dword [0x14006aa98], 1
mov dword [0x14006aa88], 1
mov dword [0x14006aa78], r12d
mov dword [0x14006aa9c], 1
mov dword [0x14006aaa0], 0x50
mov dword [0x14006aaac], 1
mov rax, qword [rax]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
js 0x140052498
mov rcx, qword [0x14006aac0]
xor edx, edx
mov qword [rsp + 0x160], rdi
mov qword [rsp + 0x168], r13
mov qword [rsp + 0x170], r14
mov qword [rsp + 0x130], r15
movaps xmmword [rsp + 0x120], xmm6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14006aac0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x14006aa60]
test rax, rax
je 0x140051c78
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 0x140051c94
xor edx, edx
mov rcx, rax
call fcn.140002480
jmp 0x140051c97
mov rax, r12
cmp qword [0x14006aa60], r12
jne 0x140051ca7
mov qword [0x14006aa60], rax
mov rcx, rax
call fcn.140009980
mov rax, qword [0x14006aa60]
test rax, rax
jne 0x140051cdc
mov r8d, 0xda0
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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 [0x14006aa60]
or dword [rax + 8], 0x400
lea r13, [rax + 8]
mov qword [r13 + 0x18], r12
test rax, rax
jne 0x140051d11
mov r8d, 0x997
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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 [0x14006aa60]
test dword [r13], 0x400
je 0x140051d2c
mov dword [rax + 0x1644], r12d
mov dword [rax + 0x1728], 0x3f800000
mov rdi, qword [0x14006aac0]
lea rcx, [0x14006ab40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140051f33
lea rcx, [0x14006ab38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140051f33
mov rbx, qword [0x14006aa60]
test rbx, rbx
jne 0x140051d8a
mov r8d, 0xda0
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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 [0x14006aa60]
or dword [rbx + 0xc], 0xc06
lea rax, str.imgui_impl_win32
mov qword [rbx + 0xe0], rax
mov qword [0x14006ab30], rdi
cmp dword [rbx + 0x1ef0], r12d
jg 0x140051dd0
mov r8d, 0x6c7
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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 [0x14006ab30]
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 0x140051df0
call fcn.140040890
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 word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x140051efe
inc rbx
cmp rbx, 5
jl 0x140051ee0
jmp 0x140051f33
lea rdx, str.XInputGetCapabilities
mov qword [0x14006ab18], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [0x14006ab20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006ab28], rax
mov rbx, qword [0x14006aa60]
mov rdi, qword [0x14006aab0]
test rbx, rbx
jne 0x140051f67
mov r8d, 0xda0
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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 [0x14006aa60]
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 [0x14006ab08], rdi
call qword [rax + 8]
test dword [rbx + 8], 0x400
je 0x140052008
mov rax, qword [0x14006aa60]
test rax, rax
jne 0x140051fc2
mov r8d, 0xda6
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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 [0x14006aa60]
lea rcx, [fcn.14003e880]
mov qword [rax + 0x15f0], rcx
lea rcx, [fcn.14003e9c0]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x14003ea60]
mov qword [rax + 0x1600], rcx
lea rcx, [0x14003eae0]
mov qword [rax + 0x1608], rcx
lea rcx, [0x14003ec30]
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, [0x140001320]
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movss xmm6, dword [0x140062194]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
nop dword [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp - 0x20]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140052097
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140052336
cmp qword [0x14006aaf8], r12
jne 0x1400520a5
call fcn.14003e5e0
call fcn.14003f480
call fcn.1400087d0
cmp dword [0x14006ab50], r12d
jne 0x1400520c9
call fcn.140001960
mov dword [0x14006ab50], 1
jmp 0x1400520ce
call fcn.1400014c0
call fcn.14000b020
mov rcx, qword [0x14006aab0]
mov r9d, 3
mov dword [rsp + 0x30], r12d
xor r8d, r8d
movss dword [rsp + 0x28], xmm6
xor edx, edx
mov dword [rsp + 0x20], r12d
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [0x14006aab0]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140052174
call fcn.14000b500
mov rbx, qword [0x14006aa60]
cmp dword [rbx + 0x1ef0], r12d
jg 0x140052141
mov r8d, 0x6c7
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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.14003dd60
mov rcx, qword [0x14006aab0]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13], 0x400
je 0x1400522b7
call fcn.14001ddc0
mov rdi, qword [0x14006aa60]
test rdi, rdi
jne 0x1400521b4
mov r8d, 0xda6
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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 rdi, qword [0x14006aa60]
mov eax, dword [rdi + 0x1628]
mov esi, 1
mov r14d, esi
cmp eax, esi
jle 0x140052235
test rsi, rsi
js 0x1400521d0
cmp r14d, eax
jl 0x1400521ea
mov r8d, 0x6c7
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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 + 0x1630]
mov rbx, qword [rax + rsi*8]
test dword [rbx + 4], 0x400
jne 0x140052224
mov rax, qword [rdi + 0x15c0]
test rax, rax
je 0x140052211
xor edx, edx
mov rcx, rbx
call rax
mov rax, qword [rdi + 0x1608]
test rax, rax
je 0x140052224
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rdi + 0x1628]
inc r14d
inc rsi
cmp r14d, eax
jl 0x1400521c6
mov esi, 1
mov r14d, esi
cmp eax, esi
jle 0x1400522b0
test rsi, rsi
js 0x14005224b
cmp r14d, eax
jl 0x140052265
mov r8d, 0x6c7
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterimguiimgui.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 + 0x1630]
mov rbx, qword [rax + rsi*8]
test dword [rbx + 4], 0x400
jne 0x14005229f
mov rax, qword [rdi + 0x15c8]
test rax, rax
je 0x14005228c
xor edx, edx
mov rcx, rbx
call rax
mov rax, qword [rdi + 0x1610]
test rax, rax
je 0x14005229f
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rdi + 0x1628]
inc r14d
inc rsi
cmp r14d, eax
jl 0x140052241
lea rsi, [0x14006aa70]
mov rcx, qword [0x14006aab0]
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 0x14005232d
mov rcx, qword [0x14006aab0]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14005232d
call fcn.14003e6f0
mov rcx, qword [0x14006aab0]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp eax, 0x8876086c
jne 0x140052328
mov r8d, 0x34
lea rdx, str.C:UsersKyDownloadsImGui_Loader_Base_masterMain.h
lea rcx, [0x1400548e8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
call fcn.14003e5e0
cmp byte [0x14006a230], r12b
je 0x140052342
cmp dword [rbp - 0x18], 0x12
jne 0x140052060
jmp 0x140052349
mov dword [rbp - 0x18], 0x12
call fcn.14001e5e0
call fcn.14003e6f0
mov rcx, qword [0x14006ab08]
movaps xmm6, xmmword [rsp + 0x120]
mov r15, qword [rsp + 0x130]
mov r14, qword [rsp + 0x170]
mov r13, qword [rsp + 0x168]
mov rdi, qword [rsp + 0x160]
test rcx, rcx
je 0x140052394
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14006ab08], 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 [0x14006ab18]
test rcx, rcx
je 0x1400523be
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [0x14006aa60]
mov rcx, rbx
mov qword [0x14006ab18], r12
mov qword [0x14006ab20], r12
mov qword [0x14006ab28], r12
mov qword [0x14006ab30], r12
mov qword [0x14006ab38], r12
mov qword [0x14006ab40], r12
mov dword [0x14006a210], 9
mov byte [0x14006aad3], r12b
mov byte [0x14006a054], 1
call fcn.140009d20
cmp qword [0x14006aa60], rbx
jne 0x14005241f
mov qword [0x14006aa60], r12
test rbx, rbx
je 0x140052447
mov rcx, rbx
call fcn.14002ad60
mov rax, qword [0x14006aa60]
test rax, rax
je 0x14005243e
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x14006aab0]
test rcx, rcx
je 0x140052460
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14006aab0], r12
mov rcx, qword [0x14006aab8]
test rcx, rcx
je 0x140052479
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x14006aab8], r12
mov rcx, qword [0x14006aac0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
jmp 0x1400524e7
mov rcx, qword [0x14006aab8]
mov rdx, qword [0x14006aab0]
test rdx, rdx
je 0x1400524c2
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov rcx, qword [0x14006aab8]
mov qword [0x14006aab0], r12
test rcx, rcx
je 0x1400524d4
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov qword [0x14006aab8], r12
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, 1
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140052610
add rsp, 0x138
pop r12
pop rsi
pop rbx
pop rbp
ret