Function at 0x458301
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x11
mov esi, ecx
call ebp
mov eax, dword [esp + 0x28]
mov ecx, 0x100
mov ebx, dword [esp + 0x2c]
cmp eax, ecx
ja 0x4585c2
je 0x458491
dec eax
sub eax, 1
je 0x458461
sub eax, 3
je 0x458411
dec eax
sub eax, 1
je 0x458405
sub eax, 1
je 0x4583f6
sub eax, 0xc
je 0x4583bd
sub eax, 0x10
je 0x458396
sub eax, 0x22
jne 0x4586b5
mov ecx, dword [esi + 0x62f78]
test ecx, ecx
je 0x4586b5
xor edi, edi
cmp dword [ecx], edi
je 0x4586b5
cmp dword [ecx + 0x1b8], edi
je 0x4586b5
call fcn.00404dda
jmp 0x4586b5
mov ecx, dword [esp + 0x30]
push 0x40
pop edx
mov eax, dword [ecx + 0x18]
cmp eax, edx
jge 0x4583a9
mov dword [ecx + 0x18], edx
mov eax, edx
imul eax, eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ecx + 0x1c], eax
jmp 0x458727
mov ecx, dword [esi + 0x62f78]
test ecx, ecx
je 0x4586b5
mov ecx, dword [ecx + 0x1bc]
test ecx, ecx
je 0x4586b5
xor edi, edi
cmp dword [esi + 0x62f68], edi
jle 0x4586b5
mov eax, dword [ecx]
push edi
push edi
push edi
push edi
push ecx
call dword [eax + 0x44]
jmp 0x458727
mov dword [esi + 0x63808], 1
jmp 0x4586b5
and dword [esi + 0x63808], 0
jmp 0x4586b5
mov eax, dword [esi + 0x62f78]
test eax, eax
je 0x4586b5
xor edi, edi
cmp dword [eax], edi
je 0x4586b5
cmp dword [esi + 0x63810], edi
jne 0x4586b5
cmp ebx, 4
je 0x45843f
cmp ebx, 1
jne 0x458442
xor edi, edi
inc edi
mov dword [esi + 0x6380c], edi
cmp ebx, 2
je 0x458455
test ebx, ebx
jne 0x4586b5
mov ecx, esi
call fcn.00457930
jmp 0x4586b5
mov ecx, dword [esi + 0x62f78]
call fcn.004052e8
test al, al
jne 0x458727
mov eax, dword [esi + 0x62f78]
push 0
mov dword [eax + 0xbac], 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x458727
xor edi, edi
cmp dword [esi + 0x63814], edi
je 0x458556
mov eax, ebx
sub eax, 0xd
je 0x458727
sub eax, 0x14
je 0x458546
sub eax, 1
je 0x458529
sub eax, 1
je 0x458727
sub eax, 1
je 0x45851e
dec eax
sub eax, 1
je 0x4584f4
dec eax
sub eax, 1
jne 0x458556
movzx edi, word [esp + 0x30]
push 0x10
call ebp
and eax, 0x8000
je 0x4584e9
imul edi, edi, 0xa
add dword [esi + 0x63818], edi
jmp 0x458727
movzx edi, word [esp + 0x30]
push 0x10
call ebp
mov ecx, dword [esi + 0x63818]
and eax, 0x8000
je 0x458511
imul eax, edi, 0xa
sub ecx, eax
jmp 0x458513
sub ecx, edi
mov dword [esi + 0x63818], ecx
jmp 0x458727
mov dword [esi + 0x63818], edi
jmp 0x458727
push 0x10
call ebp
push 0xfffffffffffffff6
and eax, 0x8000
pop eax
push 0xffffffffffffffff
pop ecx
cmove eax, ecx
add dword [esi + 0x6381c], eax
jmp 0x458727
push 0x10
call ebp
push 0xa
and eax, 0x8000
pop eax
push 1
jmp 0x458537
push dword [esp + 0x30]
mov eax, dword [esi]
mov ecx, esi
push ebx
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [eax + 0x28]
test eax, eax
je 0x458727
sub ebx, 0x1b
je 0x4585a4
sub ebx, 0xa
je 0x458727
dec ebx
sub ebx, 1
je 0x458727
sub ebx, 0x49
jne 0x458727
xor eax, eax
mov dword [esi + 0x622b4], edi
inc eax
sub eax, dword [esi + 0x62f64]
jmp 0x4585b7
mov ecx, dword [esi + 0x62f64]
test ecx, ecx
je 0x458727
xor eax, eax
inc eax
sub eax, ecx
mov dword [esi + 0x62f64], eax
jmp 0x458727
sub eax, 0x101
je 0x458713
sub eax, 1
je 0x4586d4
sub eax, 4
je 0x4586ab
sub eax, 0xb
je 0x458691
sub eax, 0x120
je 0x458685
sub eax, 1
je 0x458639
sub eax, 0x3f9
jne 0x4586b5
mov eax, dword [esi + 0x62f78]
test eax, eax
je 0x4586b5
xor edi, edi
cmp dword [eax], edi
je 0x4586b5
cmp dword [esi + 0x63810], edi
jne 0x4586b5
mov ecx, esi
call fcn.00457930
mov ecx, dword [esi + 0x62f78]
jmp 0x45838c
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
xor edi, edi
sub eax, dword [esp + 0x10]
cmp eax, 0x500
jne 0x458668
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
cmp eax, 0x2d0
je 0x45867d
mov eax, dword [esi + 0x62f78]
test eax, eax
je 0x45867d
cmp dword [eax], edi
je 0x45867d
mov ecx, esi
call fcn.00457930
mov dword [esi + 0x63810], edi
jmp 0x4586b5
mov dword [esi + 0x63810], 1
jmp 0x4586b5
push dword [esp + 0x30]
mov eax, dword [esi]
mov ecx, esi
push ebx
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [eax + 0x28]
test eax, eax
je 0x458727
jmp 0x4586b5
cmp ebx, 0x6b
je 0x4586cb
cmp ebx, 0x4b
je 0x4586cb
push dword [esp + 0x30]
mov eax, dword [esi]
mov ecx, esi
push ebx
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [eax + 0x28]
jmp 0x458729
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
jmp 0x458727
push dword [esp + 0x30]
mov eax, dword [esi]
mov edi, ebx
push edi
push dword [esp + 0x30]
mov ecx, esi
push dword [esp + 0x30]
call dword [eax + 0x28]
test eax, eax
je 0x458727
cmp edi, 0x62
ja 0x45870e
je 0x458727
sub edi, 0x42
je 0x458727
sub edi, 1
je 0x458727
sub edi, 0xf
je 0x458727
sub edi, 1
je 0x458727
sub edi, 3
jmp 0x458727
sub edi, 0x63
jmp 0x4586fd
push dword [esp + 0x30]
mov eax, dword [esi]
mov ecx, esi
push ebx
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [eax + 0x28]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10