Function at 0x140002880
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 - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400da180]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rax, qword [0x1400f2390]
test rax, rax
je 0x1400028d4
mov rcx, qword [rax + 0x98]
test rcx, rcx
je 0x1400028d4
mov byte [rcx + 0x2e], 1
mov ebx, 4
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.1400442a0
test eax, eax
je 0x14000295a
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x1400f3408], eax
jle 0x140002933
lea rcx, [0x1400f3408]
call fcn.1400aaa30
cmp dword [0x1400f3408], 0xffffffff
jne 0x140002933
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400f3418], rax
lea rcx, [0x1400f3408]
call fcn.1400aa9c4
lea rdx, str.SetThreadDpiAwarenessContext
mov rcx, qword [0x1400f3418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000295a
mov rcx, 0xfffffffffffffffc
call rax
jmp 0x1400029df
mov edx, 3
lea ecx, [rdx + 3]
call fcn.1400442a0
test eax, eax
je 0x1400029d9
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x1400f3410], eax
jle 0x1400029b7
lea rcx, [0x1400f3410]
call fcn.1400aaa30
cmp dword [0x1400f3410], 0xffffffff
jne 0x1400029b7
lea rcx, str.shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400f33f8], rax
lea rcx, [0x1400f3410]
call fcn.1400aa9c4
lea rdx, str.SetProcessDpiAwareness
mov rcx, qword [0x1400f33f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400029d9
mov ecx, 2
call rax
jmp 0x1400029df
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
mov dword [rbp + 0xd0], 0x50
mov dword [rbp + 0xd4], 0x40
lea rax, [0x140002750]
mov qword [rbp + 0xd8], rax
xor r15d, r15d
mov qword [rbp + 0xe0], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0xe8], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xf0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x100], xmm1
lea rbx, str.Nidavellir
mov qword [rbp + 0x110], rbx
mov qword [rbp + 0x118], r15
lea rcx, [rbp + 0xd0]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov qword [rsp + 0x58], r15
mov rax, qword [rbp + 0xe8]
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 + 0x110]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r12, rax
mov qword [rbp - 0x70], rax
mov qword [rbp + 0x54], r15
mov qword [rbp + 0x68], 2
mov qword [rbp + 0x80], 2
mov qword [rbp + 0x40], r15
mov dword [rbp + 0x50], 0x1c
mov dword [rbp + 0x48], 0xed
mov dword [rbp + 0x4c], 1
mov dword [rbp + 0x64], 0x20
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x5c], 1
mov qword [rbp + 0x78], 1
mov dword [rbp + 0x148], 0xb000
mov dword [rbp + 0x14c], 0xa000
lea rax, [0x1400f2378]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x50], rax
lea rax, [0x1400f2368]
mov qword [rsp + 0x48], rax
lea rax, [0x1400f2380]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
lea rax, [rbp + 0x148]
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 0x140002b7d
call fcn.1400026d0
jmp 0x14000345b
call fcn.140002660
xor edx, edx
mov rcx, r12
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, r12
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.14005c180
mov r13, qword [0x1400f2390]
test r13, r13
je 0x140002bae
inc dword [r13 + 0xf4]
mov ecx, 0x6450
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x148], rcx
mov qword [rbp + 0x38], rax
test rax, rax
je 0x140002bde
xor edx, edx
mov rcx, rax
call fcn.14000af50
jmp 0x140002be1
mov rax, r15
mov qword [0x1400f2390], rax
call fcn.140012b40
test r13, r13
je 0x140002bfb
mov qword [0x1400f2390], r13
jmp 0x140002c02
mov r13, qword [0x1400f2390]
or dword [r13 + 8], 0x401
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp + 0x40], xmm2
movups xmmword [rbp + 0x50], xmm2
movups xmmword [rbp + 0x80], xmm2
movups xmmword [rbp + 0x90], xmm2
mov qword [rbp + 0xc0], rax
mov byte [rbp + 0x4c], 1
mov dword [rbp + 0x58], 3
mov dword [rbp + 0x5c], 1
mov dword [rbp + 0x84], 0x7f7fffff
mov dword [rbp + 0x90], 0x3f800000
mov ebx, 0xffff
mov word [rbp + 0x94], bx
movaps xmm0, xmmword [rbp + 0x40]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm1, xmmword [rbp + 0x50]
movaps xmmword [rbp - 0x50], xmm1
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp - 0x30], xmm2
movaps xmm0, xmmword [rbp + 0x80]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm1, xmmword [rbp + 0x90]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp], xmm2
movaps xmmword [rbp + 0x10], xmm2
movsd xmm0, qword [rbp + 0xc0]
movsd qword [rbp + 0x20], xmm0
lea rax, str.OTTO
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], 1
mov dword [rbp - 0x4c], 0x41700000
lea rdx, [rbp - 0x60]
mov rcx, qword [r13 + 0x50]
call fcn.14003c080
mov rax, qword [r13 + 0x50]
mov rcx, qword [rax + 0x50]
mov rax, qword [rcx]
mov qword [r13 + 0x60], rax
mov rax, qword [0x1400f2390]
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.1400379d0
mov edx, 2
mov rcx, r12
call qword [sym.imp.USER32.dll_MonitorFromWindow]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
mov qword [rbp + 0x140], rcx
mov dword [rbp + 0x120], 0x28
lea rdx, [rbp + 0x120]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
mov eax, dword [rbp + 0x130]
sub eax, dword [rbp + 0x128]
cmp eax, 0x438
jle 0x140002e0d
xorps xmm0, xmm0
xor eax, eax
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
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rax
mov byte [rbp + 0x4c], 1
mov dword [rbp + 0x58], 3
mov dword [rbp + 0x5c], 1
mov dword [rbp + 0x84], 0x7f7fffff
mov dword [rbp + 0x90], 0x3f800000
mov word [rbp + 0x94], bx
mov dword [rbp + 0x54], 0x41d00000
lea rdx, [rbp + 0x40]
mov rcx, qword [0x1400f2390]
mov rcx, qword [rcx + 0x50]
call fcn.14003c340
mov rax, qword [0x1400f2390]
mov qword [rax + 0x20], r15
mov rcx, r12
call fcn.1400423a0
mov r14, qword [0x1400f2378]
mov rsi, qword [0x1400f2368]
mov rdi, qword [0x1400f2390]
test rdi, rdi
je 0x140002e40
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 0x140002e81
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 0x140002e84
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 + 0x38], r15
mov qword [rbp + 0x148], r15
mov qword [rbp + 0x30], r15
mov rax, qword [rsi]
lea r8, [rbp + 0x38]
lea rdx, [0x1400be8e8]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x140002f0d
mov rcx, qword [rbp + 0x38]
mov rax, qword [rcx]
lea r8, [rbp + 0x148]
lea rdx, [0x1400be8f8]
call qword [rax + 0x30]
test eax, eax
jne 0x140002f0d
mov rcx, qword [rbp + 0x148]
mov rax, qword [rcx]
lea r8, [rbp + 0x30]
lea rdx, [0x1400be908]
call qword [rax + 0x30]
test eax, eax
jne 0x140002f0d
mov qword [rbx], rsi
mov qword [rbx + 8], r14
mov rax, qword [rbp + 0x30]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140002f1c
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp + 0x148]
test rcx, rcx
je 0x140002f2e
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 0x140002f97
mov rax, qword [0x1400f2390]
lea rcx, [0x140042000]
mov qword [rax + 0x38a0], rcx
lea rcx, [0x140042150]
mov qword [rax + 0x38a8], rcx
lea rcx, [0x1400421e0]
mov qword [rax + 0x38b0], rcx
lea rcx, [0x1400422d0]
mov qword [rax + 0x38b8], rcx
lea rcx, [0x140042380]
mov qword [rax + 0x38c0], rcx
xor r15b, r15b
mov edi, 1
nop
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140002ffa
nop word [rax + rax]
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageA]
movzx r15d, r15b
cmp dword [rbp + 0x48], 0x12
cmove r15d, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140002fc0
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140003324
test r15b, r15b
jne 0x140003324
mov rax, qword [0x1400f2390]
test rax, rax
je 0x14000302b
mov rcx, qword [rax + 0xa0]
jmp 0x14000302d
xor ecx, ecx
cmp qword [rcx + 0x48], 0
jne 0x140003039
call fcn.140041ae0
call fcn.140043210
call fcn.140011930
call fcn.14005c180
test al, al
jne 0x140003051
call fcn.14005bbe0
mov byte [rbp - 0x80], 0x34
mov al, 0x70
mov cl, 0x5d
mov dl, 0x47
mov r8b, 0x44
mov r9b, 0x55
mov r10b, 0x40
mov r11b, 0x57
mov bl, 0x5c
mov dil, 0x51
mov sil, 0x46
xor r14d, r14d
xor al, 0x34
mov byte [rbp - 0x7f], al
xor cl, 0x34
mov byte [rbp - 0x7e], cl
xor dl, 0x34
mov byte [rbp - 0x7d], dl
xor r8b, 0x34
mov byte [rbp - 0x7c], r8b
xor r9b, 0x34
mov byte [rbp - 0x7b], r9b
xor r10b, 0x34
mov byte [rbp - 0x7a], r10b
xor r11b, 0x34
mov byte [rbp - 0x79], r11b
xor bl, 0x34
mov byte [rbp - 0x78], bl
xor dil, 0x34
mov byte [rbp - 0x77], dil
xor sil, 0x34
mov byte [rbp - 0x76], sil
mov byte [rbp - 0x75], r14b
lea rcx, [rbp - 0x7f]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140003172
movdqa xmm1, xmmword [0x1400bf1e0]
movdqu xmmword [rsp + 0x68], xmm1
mov dl, 0x43
mov r8b, 0x4a
movdqa xmm0, xmm1
psrldq xmm0, 1
movd ecx, xmm0
movd eax, xmm1
xor cl, al
mov byte [rsp + 0x69], cl
xor byte [rsp + 0x6a], al
xor byte [rsp + 0x6b], al
xor byte [rsp + 0x6c], al
xor byte [rsp + 0x6d], al
xor byte [rsp + 0x6e], al
xor byte [rsp + 0x6f], al
xor byte [rsp + 0x70], al
xor byte [rsp + 0x71], al
xor byte [rsp + 0x72], al
xor byte [rsp + 0x73], al
xor byte [rsp + 0x74], al
xor byte [rsp + 0x75], al
xor byte [rsp + 0x76], al
xor byte [rsp + 0x77], al
xor dl, al
mov byte [rsp + 0x78], dl
xor r8b, al
mov byte [rsp + 0x79], r8b
mov byte [rsp + 0x7a], r14b
lea rdx, [rsp + 0x69]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140003169
call fcn.14005c180
test al, al
jne 0x140003169
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.140004cf0
call fcn.14005b860
cmp byte [0x1400ea4ac], r14b
je 0x1400031b9
mov rax, qword [0x1400f2390]
or dword [rax + 0x40f0], 2
movsd xmm0, qword [0x1400ea4a0]
movsd qword [rax + 0x4114], xmm0
mov dword [rax + 0x40f8], 2
lea rcx, [0x1400f2800]
call fcn.14005b7a0
call fcn.1400145b0
call fcn.140014ad0
movaps xmm0, xmmword [0x1400bf1d0]
movups xmmword [rbp + 0x150], xmm0
mov rcx, qword [0x1400f2378]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1400f2370]
mov edi, 1
mov edx, edi
call qword [rax + 0x108]
mov rcx, qword [0x1400f2378]
mov rax, qword [rcx]
lea r8, [rbp + 0x150]
mov rdx, qword [0x1400f2370]
call qword [rax + 0x190]
mov rax, qword [0x1400f2390]
mov rcx, qword [rax + 0x4210]
mov rax, qword [rcx]
add rax, 0xa8
xor ecx, ecx
cmp byte [rax], cl
cmovne rcx, rax
call fcn.140040e70
test dword [r13 + 8], 0x400
je 0x14000330d
call fcn.140024ea0
mov rbx, qword [0x1400f2390]
mov r14d, edi
mov eax, dword [rbx + 0x38d8]
cmp eax, edi
jle 0x1400032b1
mov esi, 8
mov rax, qword [rbx + 0x38e0]
mov rdi, qword [rsi + rax]
test dword [rdi + 4], 0x400
jne 0x14000329a
mov rax, qword [rbx + 0x3878]
test rax, rax
je 0x140003287
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x38b8]
test rax, rax
je 0x14000329a
xor edx, edx
mov rcx, rdi
call rax
inc r14d
add rsi, 8
mov eax, dword [rbx + 0x38d8]
cmp r14d, eax
jl 0x140003260
mov edi, 1
mov esi, edi
cmp eax, 1
jle 0x14000330d
mov r14d, 8
nop
mov rax, qword [rbx + 0x38e0]
mov rdi, qword [r14 + rax]
test dword [rdi + 4], 0x400
jne 0x1400032fa
mov rax, qword [rbx + 0x3880]
test rax, rax
je 0x1400032e7
xor edx, edx
mov rcx, rdi
call rax
mov rax, qword [rbx + 0x38c0]
test rax, rax
je 0x1400032fa
xor edx, edx
mov rcx, rdi
call rax
inc esi
add r14, 8
cmp esi, dword [rbx + 0x38d8]
jl 0x1400032c0
mov edi, 1
mov rcx, qword [0x1400f2380]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, edi
call qword [rax + 0x40]
jmp 0x140002fa0
mov rdi, qword [0x1400f2390]
xor esi, esi
test rdi, rdi
je 0x14000333b
mov rbx, qword [rdi + 0xa0]
jmp 0x14000333e
mov rbx, rsi
call fcn.140025480
call fcn.140041ee0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140003357
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003365
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003374
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 [0x1400f2390]
test rax, rax
je 0x140003394
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400f2390]
test rbx, rbx
je 0x1400033b2
mov rdi, qword [rbx + 0x98]
jmp 0x1400033b5
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.140025480
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x1400033e1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x98], rsi
mov rax, qword [0x1400f2390]
test rax, rax
je 0x140003401
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400f2390]
mov qword [0x1400f2390], rbx
call fcn.140012ea0
mov qword [0x1400f2390], rsi
test rbx, rbx
je 0x14000344c
mov rcx, rbx
call fcn.1400304d0
mov rax, qword [0x1400f2390]
test rax, rax
je 0x140003443
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.1400026d0
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x110]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400aa5e0
lea r11, [rsp + 0x270]
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