Function at 0x539190
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005368c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x539204
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
cmp eax, 1
jne 0x5391d1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00537d70
add esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
cmp eax, 2
jne 0x5391ff
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
and ecx, 0x8000
jne 0x5391ff
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00538250
add esp, 8
jmp case.0x539223.1
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
ja case.0x539223.1
mov ecx, dword [ebp - 8]
jmp dword [ecx*4 + 0x53941c]
mov edx, dword [ebp - 4]
movzx eax, word [edx + 2]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3ff
jle 0x53924b
mov ecx, dword [ebp - 0xc]
sub ecx, 0x400
mov dword [ebp - 0xc], ecx
jmp 0x539234
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
je 0x5392b4
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.00663300
add esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 4]
mov cx, word [eax + 0x14]
mov word [edx + 4], cx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.0062e5c0
add esp, 8
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 1]
and eax, 1
je 0x5392b4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00537d70
add esp, 0xc
jmp case.0x539223.1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
and edx, 0x8000
jne 0x539388
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [0x15da984], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [0x15da988], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [0x15da98c], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x16]
mov dword [0x15da980], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x14]
mov dword [0x15da97c], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 6]
and edx, 0xff
sub edx, 0x7f
mov dword [ebp - 0x10], edx
cvtsi2sd xmm0, dword [ebp - 0x10]
mulsd xmm0, qword [0x71fce0]
addsd xmm0, qword [0x71eef0]
cvttsd2si eax, xmm0
mov dword [ebp - 0x10], eax
imul ecx, dword [ebp - 0x10], 0x24000
sar ecx, 8
mov edx, 0x98
imul eax, edx, 0
mov dword [eax + 0x254de7c], ecx
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 1]
and edx, 1
push edx
call fcn.00472770
add esp, 4
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
and ecx, 0x80
mov dword [0x15da564], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 6]
sar eax, 8
mov byte [0x76f661], al
jmp case.0x539223.1
cmp dword [0x15da560], 0
je 0x5393e7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
shl edx, 8
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
shl ecx, 8
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
shl eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 2]
sub edx, 0x800
push edx
mov eax, dword [0x15da550]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax + 4]
mov eax, ecx
cdq
mov ecx, 0xc
idiv ecx
add eax, 0x326
push eax
call fcn.0049dbf0
add esp, 0x18
jmp case.0x539223.1
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x539408
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push 0x15da578
call fcn.006b6b40
add esp, 8
jmp case.0x539223.1
mov edx, 1
imul eax, edx, 0
mov byte [eax + 0x15da578], 0
mov esp, ebp
pop ebp
ret