Function at 0x140081560
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
xor r12d, r12d
mov edx, 0xfffffff0
mov rcx, qword [0x140338d98]
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
mov dword [rbp - 0x30], Ordinal_46
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
mov dword [rbp - 0xc], eax
lea rdx, [rbp + 0x60]
mov rcx, qword [0x140338d98]
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov r15d, 1
test eax, eax
je 0x140081636
mov edx, r15d
mov rcx, qword [0x140338d98]
call qword [sym.imp.USER32.dll_MonitorFromWindow]
mov rcx, rax
lea rdx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
test eax, eax
je 0x140081636
and ebx, 0xff30ffff
mov r8d, ebx
mov edx, 0xfffffff0
mov rcx, qword [0x140338d98]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [rbp - 0x20]
mov r9d, dword [rbp - 0x28]
sub ecx, r9d
mov eax, dword [rbp - 0x24]
mov r8d, dword [rbp - 0x2c]
sub eax, r8d
mov dword [rsp + 0x30], 0x220
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, qword [0x140338d98]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [rbp], 0x50
mov dword [rbp + 4], 0x40
lea rax, [0x140081290]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x18], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x30], xmm1
lea rax, str.ImGui_Example
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], r12
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_RegisterClassExW]
movzx edi, ax
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.CreateWindowInBand
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov dword [rsp + 0x60], 2
mov qword [rsp + 0x58], r12
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov ecx, dword [0x140338da4]
mov dword [rsp + 0x38], ecx
mov ecx, dword [0x140338da0]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9d, 0x90000000
lea r8, str.awdijawid
movzx edx, di
mov ecx, 0xa8
call rbx
mov qword [0x140338d90], rax
mov dword [rsp + 0x60], 2
mov qword [rsp + 0x58], r12
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], 0x320
mov dword [rsp + 0x30], 0x500
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0xcf0000
lea r8, str.Dear_ImGui_DirectX11_Example
movzx edx, di
mov ecx, 0x8000008
call rbx
movdqa xmm0, xmmword [0x1402d40c0]
movdqu xmmword [rbp + 0x50], xmm0
lea rdx, [rbp + 0x50]
mov rcx, qword [0x140338d90]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r9d, 2
movzx r8d, r15b
xor edx, edx
mov rcx, qword [0x140338d90]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov qword [rbp - 0x7c], r12
mov qword [rbp - 0x68], 2
mov qword [rbp - 0x50], 2
mov qword [rsp + 0x70], r12
mov dword [rbp - 0x80], Ordinal_32
mov dword [rsp + 0x78], reloc.WLDAP32.dll_Ordinal_60
mov dword [rsp + 0x7c], r15d
mov dword [rbp - 0x6c], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [0x140338d90]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x74], r15
mov qword [rbp - 0x58], r15
mov dword [rbp + 0xd8], 0xb000
mov dword [rbp + 0xdc], 0xa000
lea rax, [0x140338d78]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x50], rax
lea rax, [0x140338d70]
mov qword [rsp + 0x48], rax
lea rax, [0x140338d80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jne 0x140081ffd
mov rcx, qword [0x140338d80]
mov rax, qword [rcx]
lea r9, [rbp + 0xe0]
lea r8, [0x1402cf218]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x140338d70]
mov rax, qword [rcx]
lea r9, [0x140338d88]
xor r8d, r8d
mov rdx, qword [rbp + 0xe0]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0xe0]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov edx, 0xa
mov rcx, qword [0x140338d90]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140338d90]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x140338a78]
test rbx, rbx
je 0x1400818d8
inc dword [rbx + 0xec]
mov ecx, 0x56a8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0xd8], rax
lea rcx, [rbp + 0xd0]
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rax
test rax, rax
je 0x140081910
xor edx, edx
mov rcx, rax
call fcn.1400169a0
jmp 0x140081913
mov rax, r12
mov qword [0x140338a78], rax
call fcn.1400a2880
test rbx, rbx
je 0x14008192b
mov qword [0x140338a78], rbx
mov ecx, Ordinal_50
call fcn.14007a418
mov qword [rbp + 0xd0], rax
mov rdx, qword [0x140338d78]
mov rcx, qword [0x140338d70]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rdx
mov rcx, qword [0x140338fd0]
mov qword [0x140338fd0], rax
test rcx, rcx
je 0x14008196f
mov edx, Ordinal_50
call fcn.14007a694
mov ecx, Ordinal_50
call fcn.14007a418
mov qword [rbp + 0xd0], rax
mov r8, qword [0x140338d78]
mov rcx, qword [0x140338d70]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], r8
mov rcx, qword [0x140338fc8]
mov qword [0x140338fc8], rax
test rcx, rcx
je 0x1400819b3
mov edx, Ordinal_50
call fcn.14007a694
lea rcx, [0x140334c50]
call fcn.1400dc8a0
mov rsi, qword [0x140338d90]
mov rbx, qword [0x140338a78]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140081b0b
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140081b0b
mov rax, qword [0x140338a78]
test rax, rax
je 0x140081a06
inc dword [rax + 0xec]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140081a33
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x140081a36
mov rdi, r12
mov qword [rbx + 0x90], rdi
lea rax, [0x1402d35b0]
mov qword [rbx + 0x80], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rbp + 0xe8]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp - 0x40]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x140338a78]
mov rcx, qword [rax + 0x40e0]
mov rax, qword [rcx]
mov qword [rax + 0x50], rsi
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x70], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x78], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp - 0x80], rax
lea rax, str.xinput1_2.dll
mov qword [rbp - 0x78], rax
lea rax, str.xinput1_1.dll
mov qword [rbp - 0x70], rax
mov rbx, r12
mov rcx, qword [rsp + rbx*8 + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140081adf
inc rbx
cmp rbx, 5
jl 0x140081ac1
jmp 0x140081b0b
mov qword [rdi + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov r14, qword [0x140338d78]
mov rsi, qword [0x140338d70]
mov rdi, qword [0x140338a78]
test rdi, rdi
je 0x140081b2b
inc dword [rdi + 0xec]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140081b6c
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov dword [rax + 0x70], 0x1388
mov dword [rax + 0x74], 0x2710
jmp 0x140081b6f
mov rbx, r12
mov qword [rdi + 0x98], rbx
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x88], rax
or dword [rdi + 0xc], 8
mov qword [rbp + 0xd0], r12
mov qword [rbp + 0xd8], r12
mov qword [rbp + 0xe0], r12
mov rax, qword [rsi]
lea r8, [rbp + 0xd0]
lea rdx, [0x1402d3580]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x140081c07
mov rcx, qword [rbp + 0xd0]
mov rax, qword [rcx]
lea r8, [rbp + 0xd8]
lea rdx, [0x1402d3590]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x140081c07
mov rcx, qword [rbp + 0xd8]
mov rax, qword [rcx]
lea r8, [rbp + 0xe0]
lea rdx, [0x1402d35a0]
call qword [rax + Ordinal_50]
test eax, eax
jne 0x140081c07
mov qword [rbx], rsi
mov qword [rbx + 8], r14
mov rax, qword [rbp + 0xe0]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp + 0xd0]
test rcx, rcx
je 0x140081c19
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x140081c2b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov edx, 0xffffffec
mov rcx, qword [0x140338d90]
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
bts eax, 0x13
movsxd r8, eax
mov edx, 0xffffffec
mov rcx, qword [0x140338d90]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
xor bl, bl
nop dword [rax + rax]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140081cd6
nop dword [rax]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageA]
movzx ebx, bl
cmp dword [rsp + 0x78], 0x12
cmove ebx, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140081c90
test bl, bl
jne 0x14008206f
movzx eax, byte [0x140338ce8]
neg al
sbb edx, edx
and edx, 0x11
mov rcx, qword [0x140338d90]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov ecx, dword [0x140338f4c]
test ecx, ecx
je 0x140081d09
cmp ecx, 1
jne 0x140081d17
mov rax, qword [0x140334c60]
jmp 0x140081d10
mov rax, qword [0x140334c50]
mov qword [0x140334c68], rax
mov rax, qword [0x140338a78]
test rax, rax
je 0x140081d2c
mov rcx, qword [rax + 0x98]
jmp 0x140081d2f
mov rcx, r12
cmp qword [rcx + 0x48], 0
jne 0x140081d3b
call fcn.1400c42c0
call fcn.1400c72d0
call fcn.1400ad300
mov rax, qword [0x140338a78]
mov rcx, qword [rax + 0x40e0]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rcx]
call fcn.1400a4160
mov rcx, qword [0x140338fd0]
mov qword [rcx], rax
mov rcx, qword [0x140334c68]
mov qword [rbp + 0xd0], rcx
mov rdi, qword [0x140338a78]
mov rsi, rcx
test rcx, rcx
jne 0x140081da9
mov rcx, qword [rdi + 0x60]
test rcx, rcx
jne 0x140081d9f
mov rax, qword [rdi + 0x50]
mov rcx, qword [rax + 0x50]
mov rcx, qword [rcx]
mov qword [rbp + 0xd0], rcx
mov rsi, rcx
call fcn.14009df20
lea rcx, [rdi + 0x4070]
lea rdx, [rbp + 0xd0]
call fcn.140017f50
mov rdx, qword [rsi + 0x40]
mov rcx, qword [rdi + 0x3ed8]
mov rdx, qword [rdx + 8]
mov rcx, qword [rcx + 0x288]
call fcn.1400c2b60
call fcn.140087d70
call fcn.1400873b0
call fcn.1400ae980
cmp byte [0x140338b38], 0
je 0x140081e00
lea rcx, [0x140334c50]
call fcn.1400dac40
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
cmp rax, qword [0x140338d98]
je 0x140081e1e
mov rcx, qword [0x140338d90]
cmp rax, rcx
jne 0x140081e3a
mov ecx, dword [0x140338f60]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140081eb6
mov rcx, qword [0x140338d90]
cmp byte [0x140339041], 0
mov byte [0x140339041], 0
je 0x140081ebd
mov byte [0x140339040], 1
cmp byte [0x140338b38], 0
sete byte [0x140338b38]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
movsxd r8, eax
mov edx, 0xffffffec
mov rcx, qword [0x140338d90]
cmp byte [0x140338b38], 0
je 0x140081e9c
btr r8, 0x13
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rcx, qword [0x140338d90]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140081ec4
bts r8, 0x13
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rcx, qword [0x140338d98]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140081ec4
mov byte [0x140339041], 1
mov byte [0x140339040], 0
mov rcx, qword [0x140338d98]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140081ff4
mov rax, qword [0x140338d98]
cmp rdi, rax
je 0x140081ef1
mov rcx, qword [0x140338d90]
cmp rdi, rcx
jne 0x140081f05
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140081f38
mov rcx, qword [0x140338d90]
cmp byte [0x140338da8], 0
je 0x140081f74
mov dword [rsp + 0x30], reloc.WS2_32.dll_send
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.USER32.dll_SetWindowPos]
mov byte [0x140338da8], 0
jmp 0x140081f74
cmp byte [0x140338da8], 0
jne 0x140081f74
mov dword [rsp + 0x30], reloc.WS2_32.dll_send
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, qword [0x140338d90]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov byte [0x140338da8], 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov rcx, qword [0x140338d78]
mov rax, qword [rcx]
lea r8, [rbp - 0x40]
mov rdx, qword [0x140338d88]
call qword [rax + 0x190]
call fcn.1400ae430
mov rcx, qword [0x140338d78]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x140338d88]
mov edx, r15d
call qword [rax + 0x108]
mov rax, qword [0x140338a78]
mov rcx, qword [rax + 0x40e0]
mov rax, qword [rcx]
add rax, 0x78
mov rcx, r12
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.1400c4b20
mov rcx, qword [0x140338d80]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, r15d
call qword [rax + 0x40]
jmp 0x140081c70
mov byte [0x140338b3a], 1
jmp 0x14008206f
mov rcx, qword [0x140338d88]
test rcx, rcx
je 0x140082016
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140338d88], r12
mov rcx, qword [0x140338d80]
test rcx, rcx
je 0x14008202f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140338d80], r12
mov rcx, qword [0x140338d78]
test rcx, rcx
je 0x140082048
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140338d78], r12
mov rcx, qword [0x140338d70]
test rcx, rcx
je 0x140082061
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140338d70], r12
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_UnregisterClassW]
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret