Function at 0x140060140
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x1400ad040]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14, rdx
xor r15d, r15d
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov dword [rbp], 0x50
mov dword [rbp + 4], 0x40
lea rax, [0x140060eb0]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x18], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x30], xmm1
lea rsi, str.ImGuiExample
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], r15
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], r15
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov r9d, 0x80000000
mov r8, rsi
mov rdx, qword [rbp + 0x40]
mov ecx, 0x80008
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov qword [rbp - 0x3c], r15
mov qword [rbp - 0x28], 3
mov qword [rbp - 0x10], 2
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x40], 0x1c
mov dword [rbp - 0x48], 0x90
mov dword [rbp - 0x44], 1
mov dword [rbp - 0x2c], 0x20
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x34], 1
mov dword [rbp - 0x18], 1
mov dword [rbp - 0x14], 3
mov dword [rbp + 0x90], 0xb000
mov dword [rbp + 0x94], 0xa000
lea rbx, [0x1400af578]
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x50], rax
lea rdi, [0x1400af570]
mov qword [rsp + 0x48], rdi
lea r12, [0x1400af568]
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x14006036a
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x50]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x140060386
call fcn.140060d20
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_UnregisterClassW]
jmp 0x140060cdb
call fcn.140060da0
mov edx, 0xa
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x1400ae6b8]
mov ecx, 0x6270
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x1400ae6b8]
test r8, r8
je 0x140060423
mov r10d, dword [r8 + 0x3f58]
movsx rax, word [r8 + 0x60e0]
lea rdx, [r8 + 0x60e4]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x140060418
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 + 0x60e0], cx
movsx rax, cx
lea rdx, [r8 + 0x60e4]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], r15d
inc word [rdx + 4]
inc dword [r8 + 0x60d8]
mov qword [rbp + 0x60], r9
lea rax, [rsp + 0x60]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], r9
test r9, r9
je 0x140060445
xor edx, edx
mov rcx, r9
call fcn.140028990
jmp 0x140060448
mov rax, r15
mov qword [0x1400ae6b8], rax
call fcn.14002c7e0
test rbx, rbx
je 0x140060462
mov qword [0x1400ae6b8], rbx
jmp 0x140060469
mov rbx, qword [0x1400ae6b8]
lea rdi, [0x14009aec8]
mov qword [rsp + 0x20], rdi
movss xmm6, dword [0x14009dca4]
movaps xmm2, xmm6
lea rdx, str.C:WindowsFontsmsyh.ttc
mov rcx, qword [rbx + 0x38]
call fcn.14004e8c0
mov qword [0x1400af0e8], rax
mov qword [rsp + 0x20], rdi
movaps xmm2, xmm6
lea rdx, str.C:WindowsFontsmsyhbd.ttc
mov rcx, qword [rbx + 0x38]
call fcn.14004e8c0
mov qword [0x1400af0d0], rax
mov qword [rsp + 0x20], rdi
movaps xmm2, xmm6
lea rdx, str.C:WindowsFontsmsyhl.ttc
mov rcx, qword [rbx + 0x38]
call fcn.14004e8c0
mov qword [0x1400af0d8], rax
mov qword [rsp + 0x20], rdi
movss xmm6, dword [0x14009dcac]
movaps xmm2, xmm6
lea rdx, str.C:WindowsFontsmsyh.ttc
mov rcx, qword [rbx + 0x38]
call fcn.14004e8c0
mov qword [0x1400af0f0], rax
mov qword [rsp + 0x20], rdi
movaps xmm2, xmm6
lea rdx, str.C:WindowsFontsmsyh.ttc
mov rcx, qword [rbx + 0x38]
call fcn.14004e8c0
mov qword [0x1400af638], rax
cmp qword [0x1400af0e8], 0
je 0x140060cb8
mov rax, qword [0x1400af0d0]
test rax, rax
je 0x140060cb8
cmp qword [0x1400af0d8], 0
je 0x140060cb8
cmp qword [0x1400af0f0], 0
je 0x140060cb8
mov qword [rbx + 0x48], rax
xor ecx, ecx
call fcn.14004a400
mov rcx, rsi
call fcn.140054220
call fcn.140054050
mov byte [0x1400ad0c5], 1
mov ecx, 0x20
call fcn.14006ecb0
mov qword [rax], 0xbb8
movups xmm0, xmmword [r14]
movups xmmword [rax + 8], xmm0
lea rcx, [0x1400125e0]
mov qword [rax + 0x18], rcx
mov qword [rbp + 0x60], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140060fe0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140060ca7
cmp dword [rsp + 0x78], 0
je 0x140060c9b
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0x60], xmm0
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140060c9b
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov ecx, reloc.WS2_32.dll_recv
call fcn.14006ecb0
mov qword [rax], 0x1388
lea rcx, [0x14005db80]
mov qword [rax + 8], rcx
mov qword [rbp + 0x60], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140061020]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140060c8a
cmp dword [rsp + 0x78], 0
je 0x140060c7e
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp + 0x60], xmm0
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140060c7e
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov dil, 1
movabs r12, 0x7fffffffffffffff
mov r13d, 0xff
xorps xmm7, xmm7
movsd xmm8, qword [0x14009dc90]
movsd xmm6, qword [0x14009dc48]
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14006071a
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
movzx edi, dil
cmp dword [rbp - 0x48], 0x12
cmove edi, r15d
movzx ebx, dil
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400606d0
test bl, bl
je 0x140060a3a
lea rcx, [rbp - 0x78]
call fcn.140003cd0
mov rax, qword [0x1400ae6b8]
test rax, rax
je 0x140060738
mov rax, qword [rax + 0x98]
jmp 0x14006073b
mov rax, r15
cmp qword [rax + 0x48], 0
jne 0x140060747
call fcn.1400539f0
call fcn.140054c30
call fcn.14002ee00
mov rax, qword [0x1400ae6b8]
mov rax, qword [rax + 0x4b18]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.14002e440
mov qword [0x1400af0e0], rax
mov rax, qword [0x1400ae6b8]
cvttss2si edx, dword [rax + 0xd4]
lea rcx, [rbp - 0x70]
call fcn.14000b4d0
nop
mov r9d, recvfrom
lea r8, str.Render_FPS:
xor edx, edx
mov rcx, rax
call fcn.14001e570
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x80], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], recvfrom
mov byte [rax], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14006081b
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060816
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060c70
call fcn.14006ef34
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], recvfrom
mov byte [rbp - 0x70], 0
lea r8, [rbp + 0x70]
cmp qword [rbp + 0x88], 0xf
cmova r8, qword [rbp + 0x70]
mov dword [rbp + 0x50], 0x41200000
mov dword [rbp + 0x54], 0x42480000
mov rdx, qword [0x1400af0e0]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x140060860
add rcx, r8
cmp r8, rcx
je 0x1400608bf
mov rax, qword [rdx + 0x38]
movups xmm0, xmmword [rdx + 0x88]
movups xmmword [rbp + 0x90], xmm0
mov byte [rsp + 0x48], 0
movss dword [rsp + 0x40], xmm7
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r8
lea rcx, [rbp + 0x90]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rbp + 0x50]
movss xmm2, dword [rax + 0x10]
mov rcx, qword [rax + 8]
call fcn.140051a10
movups xmm0, xmmword [r14]
movaps xmmword [rbp + 0x90], xmm0
lea rdx, [rbp + 0x90]
mov cl, 1
call fcn.14000f7f0
call fcn.140030f00
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov rcx, qword [0x1400af578]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1400af560]
mov edx, 1
call qword [rax + 0x108]
mov rcx, qword [0x1400af578]
mov rax, qword [rcx]
lea r8, [rbp + 0xa0]
mov rdx, qword [0x1400af560]
call qword [rax + 0x190]
mov rax, qword [0x1400ae6b8]
mov rax, qword [rax + 0x4b18]
mov rcx, qword [rax]
add rcx, 0x48
mov rax, r15
cmp byte [rcx], r15b
cmovne rax, rcx
mov rcx, rax
call fcn.140052f80
mov rcx, qword [0x1400af568]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140003cd0
mov rax, qword [rbp - 0x80]
sub rax, qword [rbp - 0x78]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, xmm8
comisd xmm6, xmm1
jbe 0x1400609f3
movaps xmm0, xmm6
subsd xmm0, xmm1
cvttsd2si eax, xmm0
movsxd rbx, eax
lea rcx, [rbp + 0x60]
call fcn.140003cd0
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x90], rcx
test rbx, rbx
je 0x1400609e6
js 0x1400609e6
imul rdx, rbx, 0xf4240
imul r8, rbx, 0xf4240
mov rax, r12
sub rax, r8
cmp rcx, rax
je 0x1400609df
mov r8d, 1
cmovl r8d, r13d
test r8b, r8b
jns 0x1400609df
lea rax, [rdx + rcx]
mov qword [rbp + 0x90], rax
jmp 0x1400609e6
mov qword [rbp + 0x90], r12
lea rcx, [rbp + 0x90]
call fcn.140009cc0
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x1400606a5
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060a30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060c77
call fcn.14006ef34
jmp 0x1400606a5
mov byte [0x1400ad0c5], 0
mov rbx, qword [0x1400ae6b8]
test rbx, rbx
je 0x140060a56
mov rdi, qword [rbx + 0x98]
jmp 0x140060a59
mov rdi, r15
call fcn.140053f30
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140060a6d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140060a7b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140060a8a
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x88], r15
mov qword [rbx + 0x98], r15
and dword [rbx + 0xc], 0xfffffff7
mov r8, qword [0x1400ae6b8]
test r8, r8
je 0x140060b08
mov r9d, dword [r8 + 0x3f58]
movsx rdx, word [r8 + 0x60e0]
lea rcx, [r8 + 0x60e4]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140060afd
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 + 0x60e0], cx
movsx rax, cx
lea rcx, [r8 + 0x60e4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r15d
inc word [rcx + 6]
inc dword [r8 + 0x60dc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [0x1400ae6b8]
test r8, r8
je 0x140060b26
mov rdi, qword [r8 + 0x90]
jmp 0x140060b29
mov rdi, r15
lea rbx, [r8 + 8]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140060b43
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8, qword [0x1400ae6b8]
mov qword [rbx + 0x78], r15
mov qword [rbx + 0x88], r15
and dword [rbx + 4], 0xfffffff8
test r8, r8
je 0x140060bb7
mov r9d, dword [r8 + 0x3f58]
movsx rdx, word [r8 + 0x60e0]
lea rcx, [rdx*8 + 0x60e4]
add rcx, r8
cmp dword [rcx], r9d
je 0x140060bac
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 + 0x60e0], cx
movsx rax, cx
lea rcx, [rax*8 + 0x60e4]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], r15d
inc word [rcx + 6]
inc dword [r8 + 0x60dc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400ae6b8]
mov qword [0x1400ae6b8], rbx
call fcn.14002ccf0
mov qword [0x1400ae6b8], r15
test rbx, rbx
je 0x140060c5d
mov rcx, rbx
call fcn.1400427f0
mov r8, qword [0x1400ae6b8]
test r8, r8
je 0x140060c54
mov r9d, dword [r8 + 0x3f58]
movsx r10, word [r8 + 0x60e0]
lea rdx, [r8 + 0x60e4]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140060c49
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 + 0x60e0], cx
movsx rax, cx
lea rdx, [r8 + 0x60e4]
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], r15d
inc word [rdx + 6]
inc dword [r8 + 0x60dc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.140060d20
mov rcx, rsi
call qword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x140060373
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x78], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x78], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdx, str.Error_loading_fonts.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008a50
lea rdx, [0x140008c30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14006ec90
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret