Function at 0x49d930
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4c9b64]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
push ebx
push esi
mov esi, edx
push edi
test eax, eax
je case.0x49dd0c.527
mov ebx, dword [eax + 0x70]
lea edi, [eax + 8]
mov dword [esp + 0x1c], ebx
cmp esi, 0x200
ja 0x49dcf4
je case.0x49d984.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x49dd0c.527
movzx eax, byte [eax + 0x49def0]
jmp dword [eax*4 + 0x49ded4]
cmp esi, 0x100
je 0x49d99f
cmp esi, 0x104
je 0x49d99f
xor bl, bl
jmp 0x49d9a1
mov bl, 1
cmp dword [ebp + 8], 0x100
jae case.0x49dd0c.527
call fcn.0049c970
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x49d9ce
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.0049d330
mov edi, eax
cmp edi, 0x262
jne 0x49d9f3
test bl, bl
jne 0x49d9f7
push ecx
push esi
mov dl, 1
mov ecx, eax
call fcn.0049c6b0
add esp, 8
jmp 0x49d9f7
test edi, edi
je 0x49da05
push ecx
push esi
mov dl, bl
mov ecx, edi
call fcn.0049c6b0
add esp, 8
cmp esi, 0x10
jne 0x49da67
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call esi
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x49da35
push ecx
push 0xa0
mov dl, bl
mov ecx, 0x210
call fcn.0049c6b0
add esp, 8
push 0xa1
call esi
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x49dd0c.527
push ecx
push 0xa1
mov ecx, 0x214
mov dl, bl
call fcn.0049c6b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x49dac9
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call esi
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x49da97
push ecx
push 0xa2
mov dl, bl
mov ecx, 0x20f
call fcn.0049c6b0
add esp, 8
push 0xa3
call esi
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x49dd0c.527
push ecx
push 0xa3
mov ecx, 0x213
mov dl, bl
call fcn.0049c6b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x49dd0c.527
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call esi
shr eax, 0xf
and al, 1
cmp al, bl
jne 0x49dafd
push ecx
push 0xa4
mov dl, bl
mov ecx, 0x211
call fcn.0049c6b0
add esp, 8
push 0xa5
call esi
shr eax, 0xf
and al, 1
cmp al, bl
jne case.0x49dd0c.527
push ecx
push 0xa5
mov ecx, 0x215
mov dl, bl
call fcn.0049c6b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 7
mov ecx, edi
sete al
movzx eax, al
push eax
call fcn.00403d90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0049c2f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x49db84
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x49dd0c.527
push ecx
mov ecx, edi
call fcn.004034d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 1
lea eax, [ebp + 8]
push eax
push 1
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [esp + 0x10]
mov ecx, edi
push eax
call fcn.00403440
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x49dd0c.527
call fcn.0049c560
test al, al
je case.0x49dd0c.527
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
and eax, 0xffffff80
cmp eax, 0xff515700
jne 0x49dbf8
mov dword [esp + 0x14], 2
jmp 0x49dc06
xor ecx, ecx
cmp eax, 0xff515780
sete cl
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 8]
xor eax, eax
mov edx, dword [esp + 0x10]
cmp esi, 0x200
mov dword [ebx + 4], edx
setne al
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, eax
je 0x49dc97
cmp esi, 0x200
mov dword [esp + 0x18], 0x12
mov eax, 2
mov dword [esp + 0x28], 0x10
cmovne eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x2c], 0x80000000
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0
test ecx, ecx
je 0x49dc85
lea ecx, [esp + 0x28]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [esp + 0x38]
push ecx
call eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [ebx + 8], eax
mov ecx, dword [ebp + 0xc]
movsx eax, cx
shr ecx, 0x10
mov dword [esp + 0x20], eax
movsx eax, cx
mov dword [esp + 0x24], eax
cmp esi, 0xa0
jne 0x49dcc7
lea eax, [esp + 0x20]
push eax
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x49dd0c.527
push dword [esp + 0x14]
mov ecx, edi
call fcn.00403d50
movd xmm2, dword [esp + 0x24]
mov ecx, edi
movd xmm1, dword [esp + 0x20]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.00403980
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x49dd0c.527
movzx eax, byte [eax + 0x49e00c]
jmp dword [eax*4 + 0x49dff0]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [ebx + 8], eax
jne case.0x49dd0c.527
cmp dword [ebx + 4], ecx
jne 0x49dd34
mov dword [ebx + 4], 0
movss xmm1, dword [0x4c2d30]
mov ecx, edi
movaps xmm2, xmm1
mov dword [ebx + 8], 0
call fcn.00403980
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0049d900
mov dword [esp + 0x1c], eax
cmp esi, 0x204
je 0x49dd71
xor edi, edi
cmp esi, 0x206
jne 0x49dd76
mov edi, 1
cmp esi, 0x207
je 0x49dd86
cmp esi, 0x209
jne 0x49dd8b
mov edi, 2
cmp esi, 0x20b
je 0x49dd9b
cmp esi, 0x20d
jne 0x49ddab
mov edi, dword [ebp + 8]
shr edi, 0x10
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 3
cmp dword [ebx + 0xc], 0
jne 0x49ddc5
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x49ddc5
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x18]
bts eax, edi
push dword [esp + 0x1c]
mov dword [ebx + 0xc], eax
lea ecx, [esi + 8]
call fcn.00403d50
push 1
push edi
lea ecx, [esi + 8]
call fcn.00403b60
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0049d900
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp esi, 0x205
sete bl
cmp esi, 0x208
jne 0x49de15
mov ebx, 2
jmp 0x49de2d
cmp esi, 0x20c
jne 0x49de2d
mov ebx, dword [ebp + 8]
shr ebx, 0x10
dec ebx
neg ebx
sbb ebx, ebx
neg ebx
add ebx, 3
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
btr eax, ebx
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x49de50
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x10]
jne 0x49de50
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [esp + 0x18]
mov ecx, edi
call fcn.00403d50
push 0
push ebx
mov ecx, edi
call fcn.00403b60
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm1, xmm1
shr eax, 0x10
mov ecx, edi
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x4c2c54]
call fcn.00403c90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm2, xmm2
shr eax, 0x10
mov ecx, edi
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x4c2d0c]
call fcn.00403c90
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x49dd0c.527
mov byte [ebx + 0x29], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret