Function at 0x559702
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edx, edx
mov byte [ebp - 3], dl
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov word [ebp - 2], dx
push 0x11
call sub.user32.dll_GetKeyState
test ah, 0x80
jne 0x559735
push 0x10
call sub.user32.dll_GetKeyState
test ah, 0x80
je 0x559739
mov byte [ebp - 2], 1
mov dword [ebx + reloc.gdi32.dll_AbortDoc], 0
mov eax, dword [ebx + 0xf0]
cmp eax, 1
jne 0x559793
mov esi, dword [ebp + 0x14]
push esi
push dword [ebx + 0xb8]
push dword [ebx]
lea eax, [ebx + 0x18]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004f5bf4
push ebx
call fcn.005596dc
mov byte [ebx + 0x137], 1
mov dword [ebx + 0xf0], 0
push esi
call fcn.00556fd3
push 0
jmp 0x559936
cmp eax, 1
jle 0x55982a
cmp eax, 9
jge 0x55982a
mov byte [ebp - 1], 1
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xf4], edx
mov ecx, dword [ebp + 8]
mov dword [ebx + 0xf8], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov edx, dword [ebx + 0xf0]
sub edx, 2
cmp edx, 4
ja case.default.0x5597d5
jmp dword [edx*4 + 0x5597dc]
mov byte [ebx + 0x134], 3
jmp case.default.0x5597d5
mov byte [ebx + 0x134], 5
jmp case.default.0x5597d5
mov byte [ebx + 0x134], 4
jmp case.default.0x5597d5
mov byte [ebx + 0x134], 7
jmp case.default.0x5597d5
mov byte [ebx + 0x134], 6
mov dword [ebx + 0xf0], 0x63
jmp 0x5598c5
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebx]
lea eax, [ebx + 0x18]
push eax
push esi
push edi
push dword [ebp - 2]
add eax, 0x104
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, reloc.gdi32.dll_AbortDoc
push eax
sub eax, 5
push eax
sub eax, 4
push eax
call fcn.004f5eb7
test al, al
je 0x5598c9
mov byte [ebp - 1], 1
movzx edx, byte [ebx + 0x135]
jmp dword [edx*4 + 0x559872]
push 0x13
jmp 0x559936
push dword [ebx]
lea eax, [ebx + 0x18]
push eax
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.00501080
test al, al
je 0x5598eb
mov byte [ebp - 1], 1
mov byte [ebx + 0x134], 1
jmp 0x559934
mov ecx, dword [ebx]
push dword [ebx + 0xbc]
push ecx
lea eax, [ebx + 0x68]
push eax
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
movzx eax, byte [ecx + 0x14e0]
push eax
lea eax, [ebp + 0xc]
push eax
sub eax, 4
push eax
sub eax, 0x1c
push eax
sub eax, 8
push eax
add eax, 0x19
push eax
call fcn.00552d02
test al, al
je 0x55993b
mov byte [ebp - 1], 1
mov byte [ebx + 0x134], 2
push 8
call fcn.00446768
cmp byte [ebp - 1], 0
je 0x5599d6
lea esi, [ebp - 0x14]
lea edi, reloc.gdi32.dll_AbortDoc
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0xc8], esi
mov edi, dword [ebp + 8]
mov dword [ebx + 0xcc], edi
mov dword [ebx + 0xd0], esi
mov dword [ebx + 0xd4], edi
mov al, byte [ebx + 0x134]
cmp al, 1
je 0x559989
cmp al, 2
je 0x559990
cmp al, 8
jb 0x5599c5
cmp al, 0xc
jbe 0x5599a9
jmp 0x5599c5
push 0x4efc
jmp 0x5599be
push 0x4f14
push 0
call fcn.00410616
push dword [ebp + 0x14]
push ebx
push esi
push edi
call fcn.0055967d
jmp 0x5599c5
cmp dword [ebx + reloc.gdi32.dll_AbortDoc], 0
jle 0x5599b9
push 0x4f16
jmp 0x5599be
push 0x4f15
push 0
call fcn.00410616
push dword [ebp + 0x14]
call sub.user32.dll_SetCapture
mov byte [ebx + 0x136], 1
jmp 0x559a1e
cmp dword [ebx + 0xa4], 0
je 0x5599fa
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push 0
push ebx
push 0
lea eax, [ebp + 0xc]
push eax
call fcn.00556616
jmp 0x559a1e
cmp dword [ebx + 0xa8], 0
je 0x559a1e
push dword [ebp + 0x14]
push dword [ebx + 0xa0]
push dword [ebx]
lea eax, [ebx + 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebx + 0xa8]
push dword [ebp + 0x14]
call fcn.00556fd3
pop edi
pop esi
pop ebx
leave
ret 0x10