Function at 0x1004aeb0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x5c
mov eax, dword [0x1024b600]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov esi, dword [esp + 0x6c]
push edi
mov edi, ecx
mov dword [esp + 0x48], esi
mov ecx, dword [edi + 0x384]
test ecx, ecx
je case.0x1004b444.515
mov eax, dword [esp + 0x68]
cmp eax, 0x200
ja 0x1004b42d
je 0x1004b303
cmp eax, 0x24
ja 0x1004b111
je 0x1004b0f0
add eax, 0xfffffffe
cmp eax, 0x1e
ja case.0x1004b444.515
movzx eax, byte [eax + 0x1004b6d0]
jmp dword [eax*4 + 0x1004b6b4]
cmp dword [0x1025184c], edi
jne 0x1004af32
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov dword [0x1025184c], 0
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x24]
mov eax, dword [edi + 0x384]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], 0x80000000
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
cmp si, 1
jne case.0x1004b444.515
cmp byte [edi + 0x38c], 0
je 0x1004afb4
mov eax, dword [edi + 0x390]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
mov ecx, edi
call fcn.10047560
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
cmp dword [esp + 0x6c], 1
je case.0x1004b444.515
cmp byte [edi + 0x3a4], 0
jne case.0x1004b444.515
mov eax, dword [edi]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
lea esi, [edi + 0x39c]
mov eax, dword [eax + 0x10]
call eax
push eax
push esi
call fcn.1004a690
add esp, 8
test al, al
je case.0x1004b444.515
mov eax, dword [edi]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ecx
mov dword [esi], ecx
mov ecx, edi
push eax
call fcn.10047560
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.1004ae30
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
movzx eax, byte [edi + 0x3aa]
mov ecx, edi
push eax
call fcn.1004ae30
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 3
push eax
mov ecx, edi
call fcn.10047560
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 2
push eax
mov ecx, edi
call fcn.10047560
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
pop edi
mov dword [esi + 0x20], 0xc350
mov dword [esi + 0x24], 0xc350
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
add eax, 0xffffff00
cmp eax, 5
ja case.0x1004b444.515
jmp dword [eax*4 + 0x1004b6f0]
cmp byte [edi + 0x398], 0
jne 0x1004b13b
test esi, 0x40000000
jne case.0x1004b444.515
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x48], ecx
lea eax, [ecx - 0xd800]
cmp eax, 0x3ff
ja 0x1004b16a
mov word [edi + 0x3a6], cx
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
lea eax, [ecx - 0xdc00]
cmp eax, 0x3ff
ja 0x1004b208
mov ax, word [edi + 0x3a6]
lea esi, [esp + 0x48]
mov word [esp + 0x36], cx
lea ecx, [esp + 0x34]
mov word [esp + 0x34], ax
mov dword [esp + 0x1c], 0x3ff
nop dword [eax]
movzx edx, word [ecx]
add ecx, 2
lea eax, [edx + 0x2800]
cmp ax, word [esp + 0x1c]
ja 0x1004b1ec
lea eax, [esp + 0x38]
cmp ecx, eax
jae 0x1004b1e4
movzx eax, word [ecx]
add ecx, 2
mov dword [esp + 0x44], eax
add eax, 0xffff2400
cmp eax, 0x3ff
ja 0x1004b1e8
mov eax, edx
mov edx, dword [esp + 0x44]
shl eax, 0xa
add edx, 0xfca02400
add eax, edx
jmp 0x1004b1ee
lea ecx, [esp + 0x38]
xor eax, eax
jmp 0x1004b1ee
mov eax, edx
mov dword [esi], eax
lea eax, [esp + 0x38]
add esi, 4
cmp ecx, eax
jb 0x1004b1a0
mov ecx, dword [esp + 0x48]
xor eax, eax
mov word [edi + 0x3a6], ax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], ecx
push eax
mov ecx, edi
mov dword [esp + 0x24], 4
call fcn.10047560
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
cmp byte [edi + 0x398], 0
jne 0x1004b24c
mov eax, esi
shr eax, 0x10
test eax, 0x4000
jne case.0x1004b444.515
mov dword [esp + 0x4c], 5
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x11
setne byte [esp + 0x5c]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x10
setne byte [esp + 0x5d]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
push 0x5b
setne byte [esp + 0x5e]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
jne 0x1004b2b2
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
mov byte [esp + 0x5b], 0
test eax, eax
je 0x1004b2b7
mov byte [esp + 0x5b], 1
push esi
mov esi, dword [esp + 0x70]
push esi
call fcn.1004c4e0
push dword [esp + 0x50]
mov dword [esp + 0x5c], eax
push esi
call fcn.1004bde0
add esp, 0x10
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call fcn.10047560
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
mov dword [esp + 0x4c], 6
jmp 0x1004b254
movsx eax, si
mov dword [esp + 0x44], eax
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x48], eax
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [esp + 0x6c], 0x73
jne 0x1004b33d
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x384]
jne 0x1004b354
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x1004b354
mov esi, dword [edi + 0x384]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x1004b354
push esi
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [esp + 0x44]
cmp esi, dword [esp + 0x50]
jl 0x1004b3bf
cmp esi, dword [esp + 0x58]
jg 0x1004b3bf
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x54]
jl 0x1004b3bf
cmp eax, dword [esp + 0x5c]
jg 0x1004b3bf
cmp byte [edi + 0x3a8], 0
jne 0x1004b410
mov eax, dword [edi + 0x384]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
push eax
mov byte [edi + 0x3a8], 1
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], 2
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 8], 0xc
jmp 0x1004b404
cmp byte [edi + 0x3a8], 0
je 0x1004b410
mov eax, dword [edi + 0x384]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x38]
push eax
mov byte [edi + 0x3a8], 0
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], 0x80000000
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 8], 0xd
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.10047560
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xb
mov dword [esp + 0x24], esi
jmp 0x1004b2db
add eax, 0xfffffdff
cmp eax, 0xa2
ja case.0x1004b444.515
movzx eax, byte [eax + 0x1004b744]
jmp dword [eax*4 + 0x1004b708]
push 0
mov byte [edi + 0x3a4], 1
call dword [sym.imp.USER32.dll_ClipCursor]
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc
mov eax, dword [edi]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov byte [edi + 0x3a4], 0
lea esi, [edi + 0x39c]
mov eax, dword [eax + 0x10]
call eax
push eax
push esi
call fcn.1004a690
add esp, 8
test al, al
je 0x1004b069
mov eax, dword [edi]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ecx
jmp 0x1004b05f
movsx eax, si
mov dword [esp + 0x40], eax
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x6c]
mov ecx, edi
shr eax, 0x10
movsx esi, ax
mov eax, 0x88888889
imul esi
mov dword [esp + 0x4c], 7
add edx, esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push eax
call fcn.10047560
movd xmm0, esi
mov dword [esp + 0x50], 0
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x10158ba4]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], 8
mov dword [esp + 0x5c], eax
movss dword [esp + 0x54], xmm0
jmp 0x1004b2d7
movsx eax, si
mov dword [esp + 0x40], eax
shr esi, 0x10
movsx eax, si
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x6c]
shr eax, 0x10
cwde
mov dword [esp + 0x50], 1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
xorps xmm0, xmmword [0x10157ae0]
jmp 0x1004b53a
mov dword [esp + 0x4c], 9
mov dword [esp + 0x50], 0
movsx eax, si
shr esi, 0x10
mov dword [esp + 0x54], eax
movsx eax, si
mov dword [esp + 0x58], eax
jmp 0x1004b2d7
mov dword [esp + 0x4c], 0xa
jmp 0x1004b5aa
mov dword [esp + 0x4c], 9
mov dword [esp + 0x50], 1
jmp 0x1004b5b2
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x50], 1
jmp 0x1004b5b2
mov dword [esp + 0x4c], 9
mov dword [esp + 0x50], 2
jmp 0x1004b5b2
mov dword [esp + 0x4c], 0xa
mov dword [esp + 0x50], 2
jmp 0x1004b5b2
mov eax, dword [esp + 0x6c]
shr eax, 0x10
dec eax
mov dword [esp + 0x4c], 9
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0x50], eax
jmp 0x1004b5b2
mov eax, dword [esp + 0x6c]
shr eax, 0x10
dec eax
mov dword [esp + 0x4c], 0xa
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0x50], eax
jmp 0x1004b5b2
cmp byte [edi + 0x3a8], 0
je case.0x1004b444.515
mov byte [edi + 0x3a8], 0
lea eax, [esp + 8]
mov dword [esp + 8], 0xd
jmp 0x1004b2db
mov eax, dword [esp + 0x6c]
cmp eax, 0x8000
je 0x1004b691
cmp eax, 0x8004
jne case.0x1004b444.515
test esi, esi
je case.0x1004b444.515
cmp dword [esi + 4], 5
jne case.0x1004b444.515
call fcn.10052350
mov ecx, dword [esp + 0x60]
pop edi
pop esi
xor ecx, esp
call fcn.1006d7ba
add esp, 0x5c
ret 0xc