Function at 0x140045a50
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
movaps xmmword [rax - 0xb8], xmm14
mov rax, qword [0x140417010]
xor rax, rsp
mov qword [rbp + 0x70], rax
cmp byte [0x14041867c], 0
jne 0x1400466b8
mov byte [0x14041867c], 1
call qword [sym.imp.KERNEL32.dll_FreeConsole]
lea rcx, [0x140069ff8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.D3DX9_43.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.DXCore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.xinput1_3.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.iertutil.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.msvcp140.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.mswsock.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.netutils.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.nvd3dumx.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.nvldumdx.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.nvspcap64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.srvcli.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [0x14006a170]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.userenv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.winmm.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [rbp]
call fcn.140044f30
nop
lea rcx, [rbp + 0x20]
call fcn.140044f30
nop
lea rsi, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rsi, qword [rbp]
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9d, [r12 - 1]
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
test eax, eax
je 0x140045c73
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x14004671d
cmp r14, 0x1000
jb 0x140045c4e
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x140046717
call fcn.140053fd8
mov rcx, rax
test rax, rax
je 0x140046608
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140045c56
mov rcx, r14
call fcn.140053fd8
mov qword [rbp - 0x20], rax
lea rbx, [rax + r14]
mov qword [rbp - 0x10], rbx
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x18], rbx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r14d
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rbp - 0x70], 0x50
mov dword [rbp - 0x6c], 0x40
lea rax, [0x140046730]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp - 0x58], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x40], xmm1
lea rax, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rax, qword [rbp]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], r12
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_RegisterClassExW]
lea r8, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae r8, qword [rbp + 0x20]
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
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
xor ecx, ecx
mov r9d, 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
mov qword [0x140417e00], rax
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rcx, rax
mov qword [0x140417e10], rax
test rax, rax
je 0x140045e1a
mov qword [0x140417db0], r12
mov qword [0x140417dbc], r12
mov dword [0x140417dc4], r12d
mov qword [0x140417dcc], r12
mov dword [0x140417dd4], r12d
mov qword [0x140417de4], r12
mov dword [0x140417dd8], 1
mov dword [0x140417dc8], 1
mov dword [0x140417db8], r12d
mov dword [0x140417ddc], 1
mov dword [0x140417de0], 0x50
mov dword [0x140417dec], 1
mov rax, qword [rax]
lea rdx, [0x140417d68]
mov qword [rsp + 0x30], rdx
lea rdx, [0x140417db0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, rbx
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x80]
test eax, eax
jns 0x140045e4f
mov rcx, qword [0x140417e10]
mov rdx, qword [0x140417d68]
test rdx, rdx
je 0x140045e3d
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140417d68], r12
mov rcx, qword [0x140417e10]
test rcx, rcx
je 0x140045e4f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140417e10], r12
xor edx, edx
mov rcx, qword [0x140417e00]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140417e00]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x140417d90]
test rax, rax
je 0x140045e7d
inc dword [rax + 0x3b0]
mov ecx, 0x3e48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 8], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140045eaf
xor edx, edx
mov rcx, rax
call fcn.140001880
mov rbx, rax
jmp 0x140045eb2
mov rbx, r12
cmp qword [0x140417d90], 0
jne 0x140045ec3
mov qword [0x140417d90], rbx
mov rcx, rbx
call fcn.1400077d0
mov r13, qword [0x140417d90]
mov qword [r13 + 0x20], r12
or dword [r13 + 8], 0x400
movss xmm2, dword [0x14040c934]
mov rcx, qword [r13 + 0xa8]
call fcn.14002e690
mov rcx, qword [r13 + 0xa8]
call fcn.14002e4e0
mov rax, qword [0x140417d90]
test dword [r13 + 8], 0x400
je 0x140045f20
mov dword [rax + 0x164c], r12d
mov dword [rax + 0x1728], 0x3f800000
call fcn.140034080
mov qword [0x140417d90], rbx
mov rcx, qword [0x140417d68]
lea rax, str.imgui_impl_dx9
mov qword [rbx + 0xe8], rax
or dword [rbx + 0xc], 0x1008
mov qword [0x1404185b0], rcx
mov rax, qword [rcx]
call qword [rax + htons]
test dword [rbx + 8], 0x400
je 0x140045fab
mov rax, qword [0x140417d90]
lea rcx, [fcn.140033d50]
mov qword [rax + 0x15f0], rcx
lea rcx, [fcn.140033e20]
mov qword [rax + 0x15f8], rcx
lea rcx, [0x140033ea0]
mov qword [rax + 0x1600], rcx
lea rcx, [0x140033f00]
mov qword [rax + 0x1608], rcx
lea rcx, [0x140034050]
mov qword [rax + 0x1610], rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movss xmm9, dword [0x14040c8bc]
xorps xmm10, xmm10
movss xmm13, dword [0x14040c880]
movss xmm12, dword [0x14040c914]
movss xmm11, dword [0x14040c870]
movss xmm14, dword [0x14040c860]
nop dword [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140046027
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x140046504
cmp qword [0x1404185a0], 0
jne 0x140046036
call fcn.140033be0
mov rbx, qword [0x140417d90]
lea rdx, [rsp + 0x68]
mov rcx, qword [0x1404185c0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x74]
sub eax, dword [rsp + 0x6c]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rsp + 0x70]
sub eax, dword [rsp + 0x68]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm0
movss dword [rbx + 0x14], xmm1
cmp byte [0x140417055], 0
je 0x1400460d0
mov rdi, qword [0x140417d90]
mov ecx, dword [rdi + 0x161c]
test ecx, ecx
jns 0x1400460ae
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov edx, r12d
test eax, eax
cmovg edx, eax
lea rcx, [rdi + 0x1618]
call fcn.140022180
mov dword [rdi + 0x1618], r12d
xor r9d, r9d
lea r8, [0x140034a10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [0x140417055], 0
lea rcx, [rbp - 8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp - 8]
mov rax, rcx
sub rax, qword [0x1404185c8]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1404185d0]
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [0x1404185c8], rcx
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13c], al
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13d], al
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x13e], al
mov byte [rbx + 0x13f], 0
call fcn.140034560
cmp byte [rbx + 0xd0], 0
je 0x14004616a
mov eax, 0xffffffff
jmp 0x140046177
mov rax, qword [0x140417d90]
mov eax, dword [rax + 0x1ef0]
cmp dword [reloc.WS2_32.dll_htons], eax
je 0x14004618a
mov dword [reloc.WS2_32.dll_htons], eax
call fcn.1400343e0
call fcn.140034760
call fcn.140006a90
cmp byte [0x140418640], 0
jne 0x1400461a7
call fcn.140044390
jmp 0x14004636f
call fcn.140051280
movss xmm8, dword [0x140418628]
addss xmm8, dword [0x14040c828]
movss dword [0x140418628], xmm8
comiss xmm8, xmm9
jbe 0x1400461db
mov dword [0x140418628], 0
movaps xmm8, xmm10
movaps xmm0, xmm8
addss xmm0, xmm13
mulss xmm0, xmm12
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm7, xmm0
mulss xmm7, xmm11
addss xmm7, xmm11
movaps xmm0, xmm8
addss xmm0, xmm14
mulss xmm0, xmm12
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm6, xmm0
mulss xmm6, xmm11
addss xmm6, xmm11
mulss xmm8, xmm12
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
mov rax, qword [0x140417d90]
mulss xmm0, xmm11
addss xmm0, xmm11
movss dword [rax + 0x171c], xmm0
movss dword [rax + 0x1720], xmm6
movss dword [rax + 0x1724], xmm7
mov dword [rax + 0x1728], 0x3f800000
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetWindowRect]
movd xmm1, dword [rbp - 0x7c]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rbp - 0x80]
cvtdq2ps xmm0, xmm0
movss dword [0x1404185e8], xmm0
movss dword [0x1404185ec], xmm1
subss xmm1, dword [0x1404186d4]
mulss xmm1, xmm11
subss xmm0, dword [0x1404186d0]
mulss xmm0, xmm11
movss dword [0x1404185f0], xmm0
movss dword [0x1404185f4], xmm1
mov rcx, qword [0x140417d90]
mov eax, dword [rcx + 0x1c40]
or eax, 0x40
mov dword [rcx + 0x1c40], eax
mov dword [rcx + 0x1ca0], 0x3e4ccccd
movss xmm0, dword [0x1404185f0]
movss xmm1, dword [0x1404185f4]
or eax, 1
mov dword [rcx + 0x1c40], eax
movss dword [rcx + 0x1c54], xmm0
movss dword [rcx + 0x1c58], xmm1
mov qword [rcx + 0x1c5c], r12
mov dword [rcx + 0x1c44], 2
mov byte [rcx + 0x1c7c], 1
movss xmm0, dword [0x1404186d0]
movss xmm1, dword [0x1404186d4]
or eax, 2
mov dword [rcx + 0x1c40], eax
movss dword [rcx + 0x1c64], xmm0
movss dword [rcx + 0x1c68], xmm1
mov dword [rcx + 0x1c48], 1
xor edx, edx
lea r8d, [rdx + 3]
mov rcx, qword [rbp - 0x20]
call fcn.14000ce30
call fcn.14004da10
call fcn.14000fee0
call fcn.140008b60
mov rcx, qword [0x140417d68]
mov rax, qword [rcx]
mov dword [rsp + 0x30], r12d
movss dword [rsp + 0x28], xmm9
mov dword [rsp + 0x20], r12d
mov r9d, 3
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x140417d68]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x1400463ef
call fcn.140009040
mov rax, qword [0x140417d90]
mov rcx, qword [rax + 0x1d40]
mov rax, qword [rcx]
add rax, 0xb0
mov rcx, r12
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.140033440
mov rcx, qword [0x140417d68]
mov rax, qword [rcx]
call qword [rax + 0x150]
test dword [r13 + 8], 0x400
je 0x1400464c7
call fcn.140018b40
mov rbx, qword [0x140417d90]
mov r14d, 1
mov eax, dword [rbx + 0x1630]
cmp eax, r14d
jle 0x140046469
mov esi, 8
nop
mov rax, qword [rbx + 0x1638]
mov rdi, qword [rsi + rax]
test byte [rdi + 4], 0x80
jne 0x140046457
mov rax, qword [rbx + 0x15c0]
test rax, rax
je 0x140046444
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1608]
test rax, rax
je 0x140046457
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
mov eax, dword [rbx + 0x1630]
cmp r14d, eax
jl 0x140046420
mov r14d, 1
cmp eax, r14d
jle 0x1400464c7
mov esi, 8
nop dword [rax]
mov rax, qword [rbx + 0x1638]
mov rdi, qword [rsi + rax]
test byte [rdi + 4], 0x80
jne 0x1400464b7
mov rax, qword [rbx + 0x15c8]
test rax, rax
je 0x1400464a4
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x1610]
test rax, rax
je 0x1400464b7
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
cmp r14d, dword [rbx + 0x1630]
jl 0x140046480
mov rcx, qword [0x140417d68]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140046504
mov rcx, qword [0x140417d68]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140046504
call fcn.140043fd0
cmp dword [rbp + 0x48], 0x12
jne 0x140045ff0
call fcn.140019130
call fcn.140033c70
mov rcx, qword [0x1404185b0]
test rcx, rcx
je 0x140046531
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1404185b0], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rax
lea rcx, str.Fps.UI.X
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov qword [0x1404185c0], r12
mov rbx, qword [0x140417d90]
mov rcx, rbx
call fcn.140007b10
cmp qword [0x140417d90], rbx
jne 0x14004656f
mov qword [0x140417d90], r12
test rbx, rbx
je 0x140046597
mov rcx, rbx
call fcn.140022ce0
mov rax, qword [0x140417d90]
test rax, rax
je 0x14004658e
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140417d68]
test rcx, rcx
je 0x1400465b0
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140417d68], r12
mov rcx, qword [0x140417e10]
test rcx, rcx
je 0x1400465c9
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140417e10], r12
mov rcx, qword [0x140417e00]
call qword [sym.imp.USER32.dll_DestroyWindow]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140046620
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004660f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004660f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140053ab0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140046663
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004665e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004665e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140053ab0
movdqa xmm0, xmmword [0x14040ca10]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], r12w
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x1400466b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400466b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400466b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140053ab0
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400539c0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140043f10
nop
call fcn.140046e60
int3