Function at 0x140057940
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x1400b7010]
xor rax, rsp
mov qword [rbp + 0x128], rax
mov dword [rbp + 0xb0], 0x50
mov dword [rbp + 0xb4], 0x40
lea rax, [0x140058310]
mov qword [rbp + 0xb8], rax
xor r12d, r12d
mov qword [rbp + 0xc0], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0xc8], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xd0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xe0], xmm1
lea rdi, str.ImGui_Example
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0xf8], r12
lea rcx, [rbp + 0xb0]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov r13d, 1
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov qword [rsp + 0x58], r12
mov rcx, qword [rbp + 0xc8]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9d, 0x80000000
mov r8, rdi
mov rdx, qword [rbp + 0xf0]
mov ecx, 0x8000028
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r14, rax
lea r9d, [r12 + 2]
mov r8b, 0xff
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x1400ae850]
movdqu xmmword [rbp + 0x108], xmm0
lea rdx, [rbp + 0x108]
mov rcx, r14
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov qword [rbp + 0x34], r12
mov qword [rbp + 0x48], 2
mov qword [rbp + 0x60], 2
mov qword [rbp + 0x20], r12
mov dword [rbp + 0x30], 0x1c
mov dword [rbp + 0x28], 0x3c
mov dword [rbp + 0x2c], r13d
mov dword [rbp + 0x44], 0x20
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x3c], r13
mov qword [rbp + 0x58], r13
mov dword [rbp], 0xb000
mov dword [rbp + 4], 0xa000
lea rbx, [0x1400e0ef8]
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x100]
mov qword [rsp + 0x50], rax
lea rdi, [0x1400e0ef0]
mov qword [rsp + 0x48], rdi
lea rsi, [0x1400e0ee0]
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
cmp eax, 0x887a0004
jne 0x140057b87
mov qword [rsp + 0x58], rbx
lea rax, [rbp + 0x100]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 5]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x140057b95
call fcn.140058290
jmp 0x140058243
mov rcx, qword [0x1400e0ee0]
mov rax, qword [rcx]
lea r9, [rbp + 8]
lea r8, [0x1400ae5b8]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x1400e0ef0]
mov rax, qword [rcx]
lea r9, [0x1400e0ed8]
xor r8d, r8d
mov rdx, qword [rbp + 8]
call qword [rax + 0x48]
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov edx, 0xa
mov rcx, r14
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, r14
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [0x1400e0b28]
test rbx, rbx
je 0x140057bfd
inc dword [rbx + 0xec]
mov ecx, 0x5e68
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x10], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x18], rcx
mov qword [rbp + 8], rax
test rax, rax
je 0x140057c2a
xor edx, edx
mov rcx, rax
call fcn.140008c80
jmp 0x140057c2d
mov rax, r12
mov qword [0x1400e0b28], rax
call fcn.14000ccd0
test rbx, rbx
je 0x140057c47
mov qword [0x1400e0b28], rbx
jmp 0x140057c4e
mov rbx, qword [0x1400e0b28]
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp + 0x20], xmm2
movups xmmword [rbp + 0x30], xmm2
movups xmmword [rbp + 0x60], xmm2
movups xmmword [rbp + 0x70], xmm2
mov qword [rbp + 0xa0], rax
mov dword [rbp + 0x38], 3
mov dword [rbp + 0x3c], r13d
mov dword [rbp + 0x64], 0x7f7fffff
mov dword [rbp + 0x70], 0x3f800000
mov eax, 0xffff
mov word [rbp + 0x74], ax
mov byte [rbp + 0x2c], 0
movaps xmm0, xmmword [rbp + 0x20]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rbp + 0x30]
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rbp - 0x70], xmm2
movaps xmmword [rbp - 0x60], xmm2
movaps xmm0, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rbp + 0x70]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm2
movaps xmmword [rbp - 0x20], xmm2
movsd xmm0, qword [rbp + 0xa0]
movsd qword [rbp - 0x10], xmm0
lea rax, [0x1400da350]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x602c
mov dword [rbp - 0x7c], 0x41600000
lea rdx, [rsp + 0x70]
mov rcx, qword [rbx + 0x38]
call fcn.14002ed60
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x20], r12
or dword [rbx + 8], 3
call fcn.140057840
call fcn.140056e90
mov rcx, r14
call fcn.140034450
mov r15, qword [0x1400e0ef8]
mov rsi, qword [0x1400e0ef0]
mov rdi, qword [0x1400e0b28]
test rdi, rdi
je 0x140057d35
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 0x140057d76
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 0x140057d79
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], r12
mov qword [rbp + 8], r12
mov qword [rbp + 0x18], r12
mov rax, qword [rsi]
lea r8, [rbp]
lea rdx, [0x1400adc08]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x140057df6
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r8, [rbp + 8]
lea rdx, [0x1400adc18]
call qword [rax + 0x30]
test eax, eax
jne 0x140057df6
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
lea r8, [rbp + 0x18]
lea rdx, [0x1400adc28]
call qword [rax + 0x30]
test eax, eax
jne 0x140057df6
mov qword [rbx], rsi
mov qword [rbx + 8], r15
mov rax, qword [rbp + 0x18]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp]
test rcx, rcx
je 0x140057e05
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140057e14
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
xor bl, bl
mov esi, dword [rbp + 0x100]
nop
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
test eax, eax
js 0x140057e5c
lea rdx, [rbp + 0x100]
mov rcx, qword [0x1400e0be0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
movzx ebx, bl
cmp dword [rbp + 0x100], 0
cmove ebx, r13d
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140057e79
cmp byte [0x1400e0f18], 0
sete byte [0x1400e0f18]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140057ece
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageA]
movzx ebx, bl
cmp dword [rbp + 0x28], 0x12
cmove ebx, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140057e94
test bl, bl
jne 0x140058128
mov r8d, dword [0x1400e0eb4]
test r8d, r8d
je 0x140057f83
mov r9d, dword [0x1400e0ee8]
test r9d, r9d
je 0x140057f83
mov rcx, qword [0x1400e0ed8]
test rcx, rcx
je 0x140057f1d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e0ed8], r12
mov r8d, dword [0x1400e0eb4]
mov r9d, dword [0x1400e0ee8]
mov rcx, qword [0x1400e0ee0]
mov rax, qword [rcx]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor edx, edx
call qword [rax + 0x68]
mov dword [0x1400e0ee8], r12d
mov dword [0x1400e0eb4], r12d
mov rcx, qword [0x1400e0ee0]
mov rax, qword [rcx]
lea r9, [rbp + 0x10]
lea r8, [0x1400ae5b8]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x1400e0ef0]
mov rax, qword [rcx]
lea r9, [0x1400e0ed8]
xor r8d, r8d
mov rdx, qword [rbp + 0x10]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x1400e0b28]
test rax, rax
je 0x140057f98
mov rcx, qword [rax + 0x98]
jmp 0x140057f9b
mov rcx, r12
cmp qword [rcx + 0x48], 0
jne 0x140057fa7
call fcn.140033df0
call fcn.140034dd0
call fcn.14000efd0
cmp byte [0x1400e0f18], 0
je 0x140057fc7
call fcn.140001ff0
mov r8d, 0x80088
jmp 0x140057fcd
mov r8d, 0x800a8
mov edx, 0xffffffec
mov rcx, r14
call qword [sym.imp.USER32.dll_SetWindowLongA]
call fcn.140006450
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x140057ffe
imul rax, rax, 0x64
jmp 0x14005801c
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
imul rcx, rcx, 0x3b9aca00
add rax, rcx
sub rax, qword [0x1400e0bb0]
cmp rax, 0x77359400
jge 0x140058035
mov eax, dword [0x1400e0bb8]
inc eax
jmp 0x140058093
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x140058053
imul rax, rax, 0x64
jmp 0x140058071
cqo
idiv rdi
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
imul rcx, rcx, 0x3b9aca00
add rax, rcx
mov qword [0x1400e0bb0], rax
mov esi, dword [0x1400e0bb8]
mov dword [0x1400e0bbc], esi
inc dword [0x1400e0bf0]
add dword [0x1400e0bf4], esi
mov eax, r12d
mov dword [0x1400e0bb8], eax
mov dword [0x1400e0b90], esi
call fcn.140011100
xorps xmm0, xmm0
movups xmmword [rbp + 0x118], xmm0
mov rcx, qword [0x1400e0ef8]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1400e0ed8]
mov edx, r13d
call qword [rax + 0x108]
mov rcx, qword [0x1400e0ef8]
mov rax, qword [rcx]
lea r8, [rbp + 0x118]
mov rdx, qword [0x1400e0ed8]
call qword [rax + 0x190]
mov rax, qword [0x1400e0b28]
mov rcx, qword [rax + 0x48b8]
mov rax, qword [rcx]
add rax, 0x48
mov rcx, r12
cmp byte [rax], r12b
cmovne rcx, rax
call fcn.140033380
mov rcx, qword [0x1400e0ee0]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, dword [0x1400e0ac0]
call qword [rax + 0x40]
jmp 0x140057e30
mov rbx, qword [0x1400e0b28]
test rbx, rbx
je 0x14005813d
mov rdi, qword [rbx + 0x98]
jmp 0x140058140
mov rdi, r12
call fcn.140034330
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140058154
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140058162
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140058171
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x88], r12
mov qword [rbx + 0x98], r12
and dword [rbx + 0xc], 0xfffffff7
mov rax, qword [0x1400e0b28]
test rax, rax
je 0x140058195
dec dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400e0b28]
test rax, rax
je 0x1400581b3
mov rdi, qword [rax + 0x90]
jmp 0x1400581b6
mov rdi, r12
lea rbx, [rax + 8]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x1400581d0
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1400e0b28]
mov qword [rbx + 0x78], r12
mov qword [rbx + 0x88], r12
and dword [rbx + 4], 0xfffffff8
test rax, rax
je 0x1400581ea
dec dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400e0b28]
mov qword [0x1400e0b28], rbx
call fcn.14000d110
mov qword [0x1400e0b28], r12
test rbx, rbx
je 0x140058235
mov rcx, rbx
call fcn.140022de0
mov rax, qword [0x1400e0b28]
test rax, rax
je 0x14005822c
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.140058290
mov rcx, r14
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov rcx, qword [rbp + 0x128]
xor rcx, rsp
call fcn.14005a900
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret