Function at 0x49943b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x514d34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x113]
and eax, 2
je 0x499484
mov ecx, 0xf09
cmp bx, cx
je 0x499473
add ecx, 0xfffffff7
cmp bx, cx
jne 0x499484
xor eax, eax
inc eax
mov word [esi + 0x235], ax
xor eax, eax
jmp 0x49980d
push edi
mov edi, 0xffff
cmp bx, di
jne 0x4994b8
test eax, eax
je 0x4994b8
lea eax, [ebp - 0x110]
push eax
call fcn.0045d9ae
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0047f20e
add esp, 0xc
test ax, ax
je 0x4997b3
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx ecx, byte [ebp - 0xf3]
mov edx, 0x4d00
movzx eax, bx
and ecx, 0x80
cmp eax, edx
jg 0x4996d9
je 0x4996a4
mov edx, 0x3d00
cmp eax, edx
jg 0x499626
je 0x4995de
mov ecx, 0x11b
cmp eax, ecx
je 0x4995c5
mov ecx, 0x1c0d
cmp eax, ecx
je 0x499568
cmp eax, 0x2106
je 0x49952a
cmp eax, 0x3b00
jne 0x4997c1
push 0xd
jmp 0x49980b
push 0xf7
call fcn.00460b68
pop ecx
test ax, ax
jne 0x49955c
call fcn.0045db2a
test ax, ax
jne 0x49955c
call fcn.004a89ec
test ax, ax
jne 0x49955c
call fcn.0045db70
test ax, ax
je 0x499801
push esi
call fcn.0049ec98
pop ecx
jmp 0x4997bd
push ecx
push esi
call fcn.0048156a
pop ecx
pop ecx
test ax, ax
jne 0x499801
test byte [esi + 0x113], 2
je 0x4995be
mov edx, dword [esi + 0x121]
mov eax, dword [edx + 0x2c3]
test eax, eax
je 0x4995a6
xor ecx, ecx
cmp dword [eax + 0x18], ecx
je 0x4995a6
mov eax, dword [edx + 0x2b7]
cmp word [eax + 0x21], cx
jne 0x4995be
push 1
push ebx
push esi
call fcn.0049981d
add esp, 0xc
test ax, ax
je 0x4995be
push 0xa
jmp 0x49980b
push 0xc
jmp 0x49980b
push ecx
push esi
call fcn.0048156a
pop ecx
pop ecx
test ax, ax
jne 0x499801
push 0xe
jmp 0x49980b
push 0xf7
call fcn.00460b68
pop ecx
test ax, ax
jne 0x4995fc
call fcn.0045db2a
test ax, ax
je 0x499801
mov eax, dword [esi + 0x231]
add eax, 0x1e
push 0x1e
push eax
push 0x20
call fcn.004a7334
add esp, 0xc
push esi
test ax, ax
jne 0x49955d
call fcn.0049efa4
jmp 0x499562
cmp eax, 0x4700
je 0x49969a
cmp eax, 0x4800
je 0x499682
cmp eax, 0x4900
je 0x49967b
cmp eax, 0x4b00
jne 0x4997c1
test dword [esi + 0x113], 0x10000
je 0x499659
push 0x10
jmp 0x49980b
push 0xfffffffffffffff0
push dword [esi + 0x1b8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
jne 0x4997bd
xor ecx, ecx
push ecx
push ecx
jmp 0x499771
push 4
jmp 0x49980b
mov eax, dword [esi + 0x113]
and eax, 0x10000
neg eax
sbb eax, eax
and eax, 0x11
inc eax
jmp 0x49980c
push 5
pop eax
push 7
jmp 0x49974d
test dword [esi + 0x113], 0x10000
je 0x4996b7
push 0x11
jmp 0x49980b
push 0xfffffffffffffff0
push dword [esi + 0x1b8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
jne 0x4997bd
push 0
push 1
jmp 0x499771
mov edx, 0x7400
cmp eax, edx
jg 0x499786
je 0x499758
cmp eax, 0x4f00
je 0x499748
cmp eax, 0x5000
je 0x49972e
cmp eax, 0x5100
je 0x499727
cmp eax, 0x7300
jne 0x4997c1
push 0xfffffffffffffff0
push dword [esi + 0x1b8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
jne 0x4997bd
push 0
push 2
jmp 0x499771
push 3
jmp 0x49980b
mov eax, dword [esi + 0x113]
and eax, 0x10000
neg eax
sbb eax, eax
and eax, 0x11
add eax, 2
jmp 0x49980c
push 6
pop eax
push 8
test ecx, ecx
pop edx
cmovne eax, edx
jmp 0x49980c
push 0xfffffffffffffff0
push dword [esi + 0x1b8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
jne 0x4997bd
push 0
push 3
push 0x114
push esi
call fcn.00492343
pop ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4997bd
cmp eax, 0x7500
je 0x499809
cmp eax, 0x7700
je 0x499805
cmp eax, 0xfffb
jle 0x4997c1
cmp eax, 0xfffd
jle 0x4997aa
cmp eax, edi
jne 0x4997c1
push 9
jmp 0x49980b
test byte [esi + 0x113], 2
je 0x499801
xor eax, eax
inc eax
mov word [esi + 0x235], ax
xor eax, eax
jmp 0x49980c
push 1
push ebx
push esi
call fcn.0049981d
add esp, 0xc
test ax, ax
jne 0x4995b7
push ebx
call fcn.004a6f2a
movsx eax, al
push eax
call fcn.0044778f
pop ecx
pop ecx
test ax, ax
je 0x4997f0
test bl, bl
je 0x499801
push ebx
call fcn.004a6f2a
sub al, 0x21
pop ecx
cmp al, 0x5d
ja 0x499801
push 0xb
jmp 0x49980b
push 0xf
jmp 0x49980b
push 7
jmp 0x49980b
push 8
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00441a5e
mov esp, ebp
pop ebp
ret