Function at 0x140052480
Capabilities:
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1400e6080]
xor rax, rsp
mov qword [rbp + 0x20], rax
lea rcx, [0x1400e74e0]
call fcn.14005f0c0
cmp byte [0x1400e7710], 0
jne 0x140052521
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x78]
call fcn.140052f50
movzx edx, byte [rax + 0xa]
test dl, dl
je 0x1400524f6
xor byte [rax], 0x32
xor byte [rax + 1], 0x33
xor byte [rax + 2], 0x34
xor byte [rax + 3], 0x35
xor byte [rax + 4], 0x36
xor byte [rax + 5], 0x37
xor byte [rax + 6], 0x38
xor byte [rax + 7], 0x39
xor byte [rax + 8], 0x3a
xor byte [rax + 9], 0x3b
xor dl, 0x3c
mov byte [rax + 0xa], dl
mov rdx, rax
call fcn.140004b50
mov rcx, rax
lea rdx, [0x1400e7718]
call fcn.140053080
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x170], rbx
lea rax, [0x140052f80]
mov qword [rsp + 0x178], rsi
xor ecx, ecx
mov qword [rsp + 0x158], r12
xor r12d, r12d
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x60], 0x50
mov dword [rbp - 0x5c], 0x40
mov qword [rbp - 0x58], rax
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, [0x1400c8344]
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 [0x1400e7470], rax
mov rbx, rax
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [0x1400e7468], rax
mov rcx, rax
test rax, rax
je 0x140052ecf
lea rdx, [0x1400e7460]
mov qword [0x1400e7420], r12
mov qword [rsp + 0x30], rdx
lea rsi, [0x1400e7420]
mov qword [0x1400e742c], r12
lea r8d, [r12 + 1]
mov dword [0x1400e7434], r12d
mov r9, rbx
mov qword [0x1400e743c], r12
xor edx, edx
mov dword [0x1400e7444], r12d
mov qword [0x1400e7454], r12
mov dword [0x1400e7448], 1
mov dword [0x1400e7438], 1
mov dword [0x1400e7428], r12d
mov dword [0x1400e744c], 1
mov dword [0x1400e7450], 0x50
mov dword [0x1400e745c], 0x80000000
mov rax, qword [rax]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x40
call qword [rax + 0x80]
test eax, eax
js 0x140052ec8
mov rcx, qword [0x1400e7470]
xor edx, edx
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x150], r13
mov qword [rsp + 0x148], r14
mov qword [rsp + 0x140], r15
movaps xmmword [rsp + 0x130], xmm6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400e7470]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x1400e7410]
test rax, rax
je 0x1400526f1
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 0x14005270d
xor edx, edx
mov rcx, rax
call fcn.140005570
jmp 0x140052710
mov rax, r12
cmp qword [0x1400e7410], r12
jne 0x140052720
mov qword [0x1400e7410], rax
mov rcx, rax
call fcn.14000c930
mov rax, qword [0x1400e7410]
test rax, rax
jne 0x140052755
mov r8d, 0xda0
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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 [0x1400e7410]
or dword [rax + 8], 0x400
lea r13, [rax + 8]
mov qword [r13 + 0x18], r12
test rax, rax
jne 0x14005278a
mov r8d, 0x997
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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 [0x1400e7410]
test dword [r13], 0x400
je 0x1400527a5
mov dword [rax + 0x1644], r12d
mov dword [rax + 0x1728], 0x3f800000
mov rdi, qword [0x1400e7470]
lea rcx, [0x1400e7b58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400529a3
lea rcx, [0x1400e7b50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400529a3
mov rbx, qword [0x1400e7410]
test rbx, rbx
jne 0x140052803
mov r8d, 0xda0
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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 [0x1400e7410]
or dword [rbx + 0xc], 0xc06
lea rax, str.imgui_impl_win32
mov qword [rbx + 0xe0], rax
mov qword [0x1400e7b48], rdi
cmp dword [rbx + 0x1ef0], r12d
jg 0x140052849
mov r8d, 0x6c7
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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 [0x1400e7b48]
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 0x140052869
call fcn.140043040
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], Ordinal_41
mov dword [rbx + 0x44], Ordinal_45
mov dword [rbx + 0x48], Ordinal_41
mov dword [rbx + 0x4c], Ordinal_45
mov dword [rbx + 0x50], reloc.WLDAP32.dll_Ordinal_33
mov dword [rbx + 0x54], Ordinal_35
mov dword [rbx + 0x58], Ordinal_41
mov dword [rbx + 0x5c], reloc.WLDAP32.dll_Ordinal_35
mov dword [rbx + 0x60], reloc.WLDAP32.dll_Ordinal_45
mov dword [rbx + 0x64], reloc.WLDAP32.dll_Ordinal_46
mov dword [rbx + 0x68], 8
mov dword [rbx + 0x6c], reloc.WLDAP32.dll_Ordinal_32
mov dword [rbx + 0x70], reloc.WS2_32.dll_listen
mov dword [rbx + 0x74], reloc.WLDAP32.dll_Ordinal_27
mov dword [rbx + 0x78], reloc.WS2_32.dll_listen
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
mov rcx, qword [rsp + rbx*8 + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x14005296e
inc rbx
cmp rbx, 5
jl 0x140052950
jmp 0x1400529a3
lea rdx, str.XInputGetCapabilities
mov qword [0x1400e7b30], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [0x1400e7b38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400e7b40], rax
mov rbx, qword [0x1400e7410]
mov rdi, qword [0x1400e7460]
test rbx, rbx
jne 0x1400529d7
mov r8d, 0xda0
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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 [0x1400e7410]
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 [0x1400e7b20], rdi
call qword [rax + reloc.WS2_32.dll_htonl]
test dword [rbx + 8], 0x400
je 0x140052a78
mov rax, qword [0x1400e7410]
test rax, rax
jne 0x140052a32
mov r8d, 0xda6
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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 [0x1400e7410]
lea rcx, [fcn.140041030]
mov qword [rax + 0x15f0], rcx
lea rcx, [fcn.140041170]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x140041210]
mov qword [rax + 0x1600], rcx
lea rcx, [0x140041290]
mov qword [rax + 0x1608], rcx
lea rcx, [0x1400413e0]
mov qword [rax + 0x1610], rcx
movss xmm6, dword [0x1400d5b9c]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
nop
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 0x140052ac7
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x10]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140052d66
cmp qword [0x1400e7b10], r12
jne 0x140052ad5
call fcn.140040d90
call fcn.140041c30
call fcn.14000b780
cmp dword [0x1400e7b68], r12d
jne 0x140052af9
call fcn.140004280
mov dword [0x1400e7b68], 1
jmp 0x140052afe
call fcn.140003780
call fcn.14000dfd0
mov rcx, qword [0x1400e7460]
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 [0x1400e7460]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140052ba4
call fcn.14000e4b0
mov rbx, qword [0x1400e7410]
cmp dword [rbx + 0x1ef0], r12d
jg 0x140052b71
mov r8d, 0x6c7
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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.140040510
mov rcx, qword [0x1400e7460]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13], 0x400
je 0x140052ce7
call fcn.140020550
mov rdi, qword [0x1400e7410]
test rdi, rdi
jne 0x140052be4
mov r8d, 0xda6
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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 [0x1400e7410]
mov eax, dword [rdi + 0x1628]
mov esi, 1
mov r14d, esi
cmp eax, esi
jle 0x140052c65
test rsi, rsi
js 0x140052c00
cmp r14d, eax
jl 0x140052c1a
mov r8d, 0x6c7
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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 0x140052c54
mov rax, qword [rdi + 0x15c0]
test rax, rax
je 0x140052c41
xor edx, edx
mov rcx, rbx
call rax
mov rax, qword [rdi + 0x1608]
test rax, rax
je 0x140052c54
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rdi + 0x1628]
inc r14d
inc rsi
cmp r14d, eax
jl 0x140052bf6
mov esi, 1
mov r14d, esi
cmp eax, esi
jle 0x140052ce0
test rsi, rsi
js 0x140052c7b
cmp r14d, eax
jl 0x140052c95
mov r8d, 0x6c7
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiimguiimgui.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 0x140052ccf
mov rax, qword [rdi + 0x15c8]
test rax, rax
je 0x140052cbc
xor edx, edx
mov rcx, rbx
call rax
mov rax, qword [rdi + 0x1610]
test rax, rax
je 0x140052ccf
xor edx, edx
mov rcx, rbx
call rax
mov eax, dword [rdi + 0x1628]
inc r14d
inc rsi
cmp r14d, eax
jl 0x140052c71
lea rsi, [0x1400e7420]
mov rcx, qword [0x1400e7460]
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 0x140052d5d
mov rcx, qword [0x1400e7460]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x140052d5d
call fcn.140040ea0
mov rcx, qword [0x1400e7460]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp eax, 0x8876086c
jne 0x140052d58
mov r8d, gethostname
lea rdx, str.C:Users_barte_source_reposKeyAuth_ImGuiMain.h
lea rcx, [0x1400c88e8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
call fcn.140040d90
cmp byte [reloc.WS2_32.dll_accept], r12b
je 0x140052d72
cmp dword [rbp - 8], 0x12
jne 0x140052a90
jmp 0x140052d79
mov dword [rbp - 8], reloc.WS2_32.dll_select
call fcn.140020d70
call fcn.140040ea0
mov rcx, qword [0x1400e7b20]
movaps xmm6, xmmword [rsp + 0x130]
mov r15, qword [rsp + 0x140]
mov r14, qword [rsp + 0x148]
mov r13, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x180]
test rcx, rcx
je 0x140052dc4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1400e7b20], 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 [0x1400e7b30]
test rcx, rcx
je 0x140052dee
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [0x1400e7410]
mov rcx, rbx
mov qword [0x1400e7b30], r12
mov qword [0x1400e7b38], r12
mov qword [0x1400e7b40], r12
mov qword [0x1400e7b48], r12
mov qword [0x1400e7b50], r12
mov qword [0x1400e7b58], r12
mov dword [reloc.WS2_32.dll_htons], 9
mov byte [0x1400e74d8], r12b
mov byte [reloc.WS2_32.dll_accept], 1
call fcn.14000ccd0
cmp qword [0x1400e7410], rbx
jne 0x140052e4f
mov qword [0x1400e7410], r12
test rbx, rbx
je 0x140052e77
mov rcx, rbx
call fcn.14002d4b0
mov rax, qword [0x1400e7410]
test rax, rax
je 0x140052e6e
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400e7460]
test rcx, rcx
je 0x140052e90
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1400e7460], r12
mov rcx, qword [0x1400e7468]
test rcx, rcx
je 0x140052ea9
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1400e7468], r12
mov rcx, qword [0x1400e7470]
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 0x140052f17
mov rcx, qword [0x1400e7468]
mov rdx, qword [0x1400e7460]
test rdx, rdx
je 0x140052ef2
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x1400e7468]
mov qword [0x1400e7460], r12
test rcx, rcx
je 0x140052f04
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov qword [0x1400e7468], r12
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, 1
mov rsi, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x170]
mov r12, qword [rsp + 0x158]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400b5500
add rsp, 0x160
pop rbp
ret