Function at 0x140002620
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 - 0x140]
sub rsp, 0x240
mov rax, qword [0x1400d5180]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rax, qword [0x1400ecbe0]
test rax, rax
je 0x140002674
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x140002674
mov byte [rcx + 0x2e], 1
mov ebx, 4
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.140042570
test eax, eax
je 0x1400026fa
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x1400ee088], eax
jle 0x1400026d3
lea rcx, [0x1400ee088]
call fcn.1400a7590
cmp dword [0x1400ee088], 0xffffffff
jne 0x1400026d3
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400ee098], rax
lea rcx, [0x1400ee088]
call fcn.1400a7524
lea rdx, str.SetThreadDpiAwarenessContext
mov rcx, qword [0x1400ee098]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400026fa
mov rcx, 0xfffffffffffffffc
call rax
jmp 0x14000277f
mov edx, 3
lea ecx, [rdx + 3]
call fcn.140042570
test eax, eax
je 0x140002779
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x1400ee090], eax
jle 0x140002757
lea rcx, [0x1400ee090]
call fcn.1400a7590
cmp dword [0x1400ee090], 0xffffffff
jne 0x140002757
lea rcx, str.shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400ee078], rax
lea rcx, [0x1400ee090]
call fcn.1400a7524
lea rdx, str.SetProcessDpiAwareness
mov rcx, qword [0x1400ee078]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002779
mov ecx, 2
call rax
jmp 0x14000277f
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
mov dword [rbp + 0xa0], 0x50
mov dword [rbp + 0xa4], 0x40
lea rax, [0x1400024f0]
mov qword [rbp + 0xa8], rax
xor r15d, r15d
mov qword [rbp + 0xb0], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0xb8], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xd0], xmm1
lea rbx, str.Nidavellir
mov qword [rbp + 0xe0], rbx
mov qword [rbp + 0xe8], r15
lea rcx, [rbp + 0xa0]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov qword [rsp + 0x58], r15
mov rax, qword [rbp + 0xb8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 0x32
mov dword [rsp + 0x30], 0x32
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0xcf0000
mov r8, rbx
mov rdx, qword [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r12, rax
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x24], r15
mov qword [rbp + 0x38], 2
mov qword [rbp + 0x50], 2
mov qword [rbp + 0x10], r15
mov dword [rbp + 0x20], 0x1c
mov dword [rbp + 0x18], 0xed
mov dword [rbp + 0x1c], 1
mov dword [rbp + 0x34], 0x20
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x2c], 1
mov qword [rbp + 0x48], 1
mov dword [rbp + 0x118], 0xb000
mov dword [rbp + 0x11c], 0xa000
lea rax, [0x1400ecbc0]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x50], rax
lea rax, [0x1400ecbb0]
mov qword [rsp + 0x48], rax
lea rax, [0x1400ecbc8]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x118]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 1]
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
je 0x14000291b
call fcn.140002470
jmp 0x1400030be
call fcn.140002400
xor edx, edx
mov rcx, r12
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, r12
call qword [sym.imp.USER32.dll_UpdateWindow]
mov r13, qword [0x1400ecbe0]
test r13, r13
je 0x140002947
inc dword [r13 + 0xf4]
mov ecx, 0x6450
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x118], rcx
mov qword [rbp + 8], rax
test rax, rax
je 0x140002977
xor edx, edx
mov rcx, rax
call fcn.140008bf0
jmp 0x14000297a
mov rax, r15
mov qword [0x1400ecbe0], rax
call fcn.140010780
test r13, r13
je 0x140002994
mov qword [0x1400ecbe0], r13
jmp 0x14000299b
mov r13, qword [0x1400ecbe0]
or dword [r13 + 8], 0x401
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp + 0x10], xmm2
movups xmmword [rbp + 0x20], xmm2
movups xmmword [rbp + 0x50], xmm2
movups xmmword [rbp + 0x60], xmm2
mov qword [rbp + 0x90], rax
mov byte [rbp + 0x1c], 1
mov dword [rbp + 0x28], 3
mov dword [rbp + 0x2c], 1
mov dword [rbp + 0x54], 0x7f7fffff
mov dword [rbp + 0x60], 0x3f800000
mov ebx, 0xffff
mov word [rbp + 0x64], bx
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x80], xmm1
movaps xmmword [rbp - 0x70], xmm2
movaps xmmword [rbp - 0x60], xmm2
movaps xmm0, xmmword [rbp + 0x50]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x30], xmm2
movaps xmmword [rbp - 0x20], xmm2
movsd xmm0, qword [rbp + 0x90]
movsd qword [rbp - 0x10], xmm0
lea rax, str.OTTO
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 1
mov dword [rbp - 0x7c], 0x41700000
lea rdx, [rsp + 0x70]
mov rcx, qword [r13 + 0x50]
call fcn.14003a300
mov rax, qword [r13 + 0x50]
mov rcx, qword [rax + 0x50]
mov rax, qword [rcx]
mov qword [r13 + 0x60], rax
mov rax, qword [0x1400ecbe0]
mov dword [rax + 0x3934], 0x40800000
mov dword [rax + 0x3990], 0x40800000
mov dword [rax + 0x3980], 0x40800000
mov dword [rax + 0x393c], 0x40800000
mov dword [rax + 0x394c], 0x40800000
mov dword [rax + 0x3988], 0x40800000
mov dword [rax + 0x3918], 0x40800000
mov dword [rax + 0x39fc], 0x3f800000
xor ecx, ecx
call fcn.140035c50
mov edx, 2
mov rcx, r12
call qword [sym.imp.USER32.dll_MonitorFromWindow]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
mov qword [rbp + 0x110], rcx
mov dword [rbp + 0xf0], 0x28
lea rdx, [rbp + 0xf0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
mov eax, dword [rbp + 0x100]
sub eax, dword [rbp + 0xf8]
cmp eax, 0x438
jle 0x140002b7f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], rax
mov byte [rbp + 0x1c], 1
mov dword [rbp + 0x28], 3
mov dword [rbp + 0x2c], 1
mov dword [rbp + 0x54], 0x7f7fffff
mov dword [rbp + 0x60], 0x3f800000
mov word [rbp + 0x64], bx
mov dword [rbp + 0x24], 0x41d00000
lea rdx, [rbp + 0x10]
mov rcx, qword [0x1400ecbe0]
mov rcx, qword [rcx + 0x50]
call fcn.14003a5c0
mov rax, qword [0x1400ecbe0]
mov qword [rax + 0x20], r15
mov rcx, r12
call fcn.140040670
mov r14, qword [0x1400ecbc0]
mov rsi, qword [0x1400ecbb0]
mov rdi, qword [0x1400ecbe0]
test rdi, rdi
je 0x140002bb2
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140002bf3
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 0x140002bf6
mov rbx, r15
mov qword [rdi + 0xa0], rbx
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
or dword [rdi + 0xc], 0x1008
mov qword [rbp + 8], r15
mov qword [rbp + 0x118], r15
mov qword [rbp], r15
mov rax, qword [rsi]
lea r8, [rbp + 8]
lea rdx, [0x1400ba858]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x140002c7f
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
lea r8, [rbp + 0x118]
lea rdx, [0x1400ba868]
call qword [rax + 0x30]
test eax, eax
jne 0x140002c7f
mov rcx, qword [rbp + 0x118]
mov rax, qword [rcx]
lea r8, [rbp]
lea rdx, [0x1400ba878]
call qword [rax + 0x30]
test eax, eax
jne 0x140002c7f
mov qword [rbx], rsi
mov qword [rbx + 8], r14
mov rax, qword [rbp]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140002c8e
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x118]
test rcx, rcx
je 0x140002ca0
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
test dword [rdi + 8], 0x400
je 0x140002d09
mov rax, qword [0x1400ecbe0]
lea rcx, [0x1400402d0]
mov qword [rax + 0x38a0], rcx
lea rcx, [0x140040420]
mov qword [rax + 0x38a8], rcx
lea rcx, [0x1400404b0]
mov qword [rax + 0x38b0], rcx
lea rcx, [0x1400405a0]
mov qword [rax + 0x38b8], rcx
lea rcx, [0x140040650]
mov qword [rax + 0x38c0], rcx
xor r15b, r15b
mov edi, 1
nop dword [rax]
nop word [rax + rax]
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140002d7a
nop word [rax + rax]
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_DispatchMessageA]
movzx r15d, r15b
cmp dword [rbp + 0x18], 0x12
cmove r15d, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140002d40
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140002f86
test r15b, r15b
jne 0x140002f86
mov rax, qword [0x1400ecbe0]
test rax, rax
je 0x140002dab
mov rcx, qword [rax + 0xa0]
jmp 0x140002dad
xor ecx, ecx
cmp qword [rcx + 0x48], 0
jne 0x140002db9
call fcn.14003fdb0
call fcn.1400414e0
call fcn.14000f560
call fcn.140058fb0
lea rcx, [0x1400ecc10]
call fcn.140003b60
call fcn.140058cf0
cmp byte [0x1400e54ac], 0
je 0x140002e16
mov rax, qword [0x1400ecbe0]
or dword [rax + 0x40f0], 2
movsd xmm0, qword [0x1400e54a0]
movsd qword [rax + 0x4114], xmm0
mov dword [rax + 0x40f8], 2
lea rcx, [0x1400ed1b0]
call fcn.140058c30
call fcn.1400121f0
call fcn.140012710
movaps xmm0, xmmword [0x1400bb2e0]
movups xmmword [rbp + 0x120], xmm0
mov rcx, qword [0x1400ecbc0]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1400ecbb8]
mov edx, edi
call qword [rax + 0x108]
mov rcx, qword [0x1400ecbc0]
mov rax, qword [rcx]
lea r8, [rbp + 0x120]
mov rdx, qword [0x1400ecbb8]
call qword [rax + 0x190]
mov rax, qword [0x1400ecbe0]
mov rcx, qword [rax + 0x4210]
mov rax, qword [rcx]
add rax, 0xa8
xor ecx, ecx
cmp byte [rax], cl
cmovne rcx, rax
call fcn.14003f140
test dword [r13 + 8], 0x400
je 0x140002f6f
call fcn.1400231c0
mov rbx, qword [0x1400ecbe0]
mov r14d, edi
mov eax, dword [rbx + 0x38d8]
cmp eax, 1
jle 0x140002f11
mov esi, 8
nop dword [rax]
mov rax, qword [rbx + 0x38e0]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x140002efa
mov rax, qword [rbx + 0x3878]
test rax, rax
je 0x140002ee7
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x38b8]
test rax, rax
je 0x140002efa
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
mov eax, dword [rbx + 0x38d8]
cmp r14d, eax
jl 0x140002ec0
mov edi, 1
mov r14d, edi
cmp eax, 1
jle 0x140002f6f
mov esi, 8
nop
mov rax, qword [rbx + 0x38e0]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x140002f5a
mov rax, qword [rbx + 0x3880]
test rax, rax
je 0x140002f47
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x38c0]
test rax, rax
je 0x140002f5a
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
cmp r14d, dword [rbx + 0x38d8]
jl 0x140002f20
mov edi, 1
mov rcx, qword [0x1400ecbc8]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, edi
call qword [rax + 0x40]
jmp 0x140002d20
mov rdi, qword [0x1400ecbe0]
xor esi, esi
test rdi, rdi
je 0x140002f9d
mov rbx, qword [rdi + 0xa0]
jmp 0x140002fa0
mov rbx, rsi
call fcn.1400237a0
call fcn.1400401b0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140002fb9
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140002fc7
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140002fd6
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0xa0], rsi
mov rax, qword [0x1400ecbe0]
test rax, rax
je 0x140002ff6
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400ecbe0]
test rbx, rbx
je 0x140003014
mov rdi, qword [rbx + 0x98]
jmp 0x140003017
mov rdi, rsi
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]
call fcn.1400237a0
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140003043
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x98], rsi
mov rax, qword [0x1400ecbe0]
test rax, rax
je 0x140003063
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400ecbe0]
mov qword [0x1400ecbe0], rbx
call fcn.140010ae0
mov qword [0x1400ecbe0], rsi
test rbx, rbx
je 0x1400030ae
mov rcx, rbx
call fcn.14002e750
mov rax, qword [0x1400ecbe0]
test rax, rax
je 0x1400030a5
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.140002470
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400a7140
lea r11, [rsp + 0x240]
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