Function at 0x4d5a9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 0x10
je 0x4d5af1
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00505f9c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d5af1
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x2bc], 0
je 0x4d5af1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x2bc]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x24]
test al, al
jne 0x4d5dfe
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x100
jb 0x4d5b3c
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x109
ja 0x4d5b3c
mov dl, 1
mov eax, dword [ebp - 0x14]
call fcn.00505f9c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d5df3
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x114]
test al, al
jne 0x4d5dfe
jmp 0x4d5df3
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x200
jb 0x4d5dce
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x20e
ja 0x4d5dce
mov eax, dword [ebp - 0x14]
test byte [eax + 0x50], 0x80
jne 0x4d5b7f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x203
je 0x4d5b79
sub eax, 3
je 0x4d5b79
sub eax, 3
jne 0x4d5b7f
mov eax, dword [ebp - 0x18]
sub dword [eax], 2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, 0xfffffe00
cmp eax, 7
ja case.0x4d5b92.516
jmp dword [eax*4 + 0x4d5b99]
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x51ebf4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.00512fec
jmp 0x4d5df3
mov eax, dword [ebp - 0x14]
test byte [eax + 0x52], 8
je 0x4d5df3
mov eax, dword [0x4d5e04]
mov edx, dword [ebp - 0x14]
and eax, dword [edx + 0x54]
mov edx, dword [0x4d5e08]
cmp edx, eax
jne 0x4d5df3
mov eax, dword [0x524a7c]
call fcn.004e68ac
test al, al
jne 0x4d5df3
mov eax, dword [0x524a7c]
call fcn.004e67d4
mov byte [ebp - 0x1d], 0
mov eax, dword [0x524a7c]
cmp dword [eax + 0x28], 0
je 0x4d5cba
mov eax, dword [ebp - 0x14]
mov edx, dword [0x4ca58c]
call fcn.0040503c
test al, al
je 0x4d5c59
mov eax, dword [ebp - 0x14]
call fcn.004df330
mov edx, eax
mov eax, dword [0x524a7c]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xf4]
mov byte [ebp - 0x1d], al
jmp 0x4d5cba
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x34], 0
je 0x4d5c87
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x34]
call fcn.004df330
mov edx, eax
mov eax, dword [0x524a7c]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xf4]
mov byte [ebp - 0x1d], al
jmp 0x4d5cba
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00505f9c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d5cba
mov eax, dword [ebp - 0x1c]
call fcn.004df330
mov edx, eax
mov eax, dword [0x524a7c]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xf4]
mov byte [ebp - 0x1d], al
cmp byte [ebp - 0x1d], 0
je 0x4d5cdb
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 1
mov eax, dword [0x51ebf4]
mov eax, dword [eax]
call fcn.00513148
jmp 0x4d5df3
mov eax, dword [0x524a7c]
cmp dword [eax + 0x28], 0
je 0x4d5df3
xor edx, edx
mov eax, dword [0x524a7c]
call fcn.004e69fc
jmp 0x4d5df3
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x5f], 1
jne 0x4d5d15
mov eax, dword [ebp - 0x14]
mov si, 0xffee
call fcn.004050ac
jmp 0x4d5dfe
mov eax, dword [ebp - 0x14]
or dword [eax + 0x54], 1
jmp 0x4d5df3
mov eax, dword [ebp - 0x14]
and dword [eax + 0x54], 0xfffffffe
jmp 0x4d5df3
mov eax, dword [0x524a7c]
cmp byte [eax + 0x20], 0
je 0x4d5df3
mov eax, dword [0x524a7c]
cmp dword [eax + 0x1c], 0
je 0x4d5df3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [0x524a7c]
cmp eax, dword [edx + 0x1c]
jne 0x4d5df3
lea eax, [ebp - 0x12c]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x12c]
call fcn.00505e98
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
and eax, 0xffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shr eax, 0x10
mov dword [ebp - 0x28], eax
mov ax, word [ebp - 0x24]
mov word [ebp - 0x2c], ax
mov ax, word [ebp - 0x28]
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffc9
call fcn.004050ac
jmp 0x4d5dfe
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xb00b
jne 0x4d5df3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
call fcn.004d3604
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret