Function at 0x402b02
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x45100c]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, ecx
mov ecx, dword [0x451660]
mov dword [esp + 4], eax
push esi
push edi
test ecx, ecx
je case.0x40328f.527
mov esi, dword [ecx + 0x6c]
lea edi, [ecx + 8]
mov dword [esp + 8], esi
cmp edx, 0x200
ja 0x403277
je 0x40318e
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x40328f.527
movzx eax, byte [eax + 0x403484]
jmp dword [eax*4 + 0x403470]
cmp edx, 0x100
je 0x402b17
mov byte [esp + 8], 0
cmp edx, 0x104
jne 0x402b1c
mov byte [esp + 8], 1
mov esi, dword [ebp + 8]
cmp esi, 0x100
jae case.0x40328f.527
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3759], 0
mov byte [esp + 0xc], al
je 0x402b66
test al, al
je 0x402b53
movss xmm3, dword [0x44d510]
jmp 0x402b56
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, edi
push 0x281
call fcn.00405290
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3759], 0
mov byte [esp + 0xc], al
je 0x402ba1
test al, al
je 0x402b8e
movss xmm3, dword [0x44d510]
jmp 0x402b91
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, edi
push 0x282
call fcn.00405290
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3759], 0
mov byte [esp + 0xc], al
je 0x402bdc
test al, al
je 0x402bc9
movss xmm3, dword [0x44d510]
jmp 0x402bcc
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, edi
push 0x283
call fcn.00405290
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3759], 0
mov byte [esp + 0xc], al
je 0x402c17
test al, al
je 0x402c04
movss xmm3, dword [0x44d510]
jmp 0x402c07
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, edi
push 0x284
call fcn.00405290
cmp esi, 0xd
jne 0x402c2f
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.00402560
mov edi, eax
test edi, edi
je 0x402c8b
mov eax, dword [0x451660]
add eax, 8
mov dword [esp + 0xc], eax
cmp byte [eax + 0x3759], 0
je 0x402c75
cmp byte [esp + 8], 0
je 0x402c62
movss xmm3, dword [0x44d510]
jmp 0x402c65
xorps xmm3, xmm3
push dword [esp + 8]
mov ecx, eax
push edi
call fcn.00405290
mov eax, dword [esp + 0xc]
cmp esi, 0x1ff
ja 0x402c8b
mov dword [eax + esi*4 + 0xac], edi
mov dword [eax + edi*4 + 0xac], esi
cmp esi, 0x10
jne 0x402d67
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call edi
mov cl, byte [esp + 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x402cf4
mov eax, dword [0x451660]
cmp byte [eax + 0x3761], 0
lea esi, [eax + 8]
je 0x402ce0
test cl, cl
je 0x402ccd
movss xmm3, dword [0x44d510]
jmp 0x402cd0
xorps xmm3, xmm3
push dword [esp + 8]
mov ecx, esi
push 0x210
call fcn.00405290
mov dword [esi + 0x32c], 0x210
mov dword [esi + 0x8ec], 0xa0
push 0xa1
call edi
mov cl, byte [esp + 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x40328f.527
mov esi, dword [0x451660]
cmp byte [esi + 0x3761], 0
je 0x402d40
test cl, cl
je 0x402d29
movss xmm0, dword [0x44d510]
jmp 0x402d2c
xorps xmm0, xmm0
push dword [esp + 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.00405290
mov dword [esi + 0x338], 0x214
xor eax, eax
mov dword [esi + 0x904], 0xa1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x402e43
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call edi
mov cl, byte [esp + 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x402dd0
mov eax, dword [0x451660]
cmp byte [eax + 0x3761], 0
lea esi, [eax + 8]
je 0x402dbc
test cl, cl
je 0x402da9
movss xmm3, dword [0x44d510]
jmp 0x402dac
xorps xmm3, xmm3
push dword [esp + 8]
mov ecx, esi
push 0x20f
call fcn.00405290
mov dword [esi + 0x334], 0x20f
mov dword [esi + 0x8e8], 0xa2
push 0xa3
call edi
mov cl, byte [esp + 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x40328f.527
mov esi, dword [0x451660]
cmp byte [esi + 0x3761], 0
je 0x402e1c
test cl, cl
je 0x402e05
movss xmm0, dword [0x44d510]
jmp 0x402e08
xorps xmm0, xmm0
push dword [esp + 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.00405290
mov dword [esi + 0x340], 0x213
xor eax, eax
mov dword [esi + 0x900], 0xa3
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x40328f.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call edi
mov cl, byte [esp + 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x402eac
mov eax, dword [0x451660]
cmp byte [eax + 0x3761], 0
lea esi, [eax + 8]
je 0x402e98
test cl, cl
je 0x402e85
movss xmm3, dword [0x44d510]
jmp 0x402e88
xorps xmm3, xmm3
push dword [esp + 8]
mov ecx, esi
push 0x211
call fcn.00405290
mov dword [esi + 0x33c], 0x211
mov dword [esi + 0x8f0], 0xa4
push 0xa5
call edi
mov cl, byte [esp + 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x40328f.527
mov esi, dword [0x451660]
cmp byte [esi + 0x3761], 0
je 0x402ef8
test cl, cl
je 0x402ee1
movss xmm0, dword [0x44d510]
jmp 0x402ee4
xorps xmm0, xmm0
push dword [esp + 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.00405290
mov dword [esi + 0x348], 0x215
xor eax, eax
mov dword [esi + 0x908], 0xa5
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
mov edi, dword [ecx + 0x377c]
lea esi, [ecx + 0x3778]
mov ecx, dword [esi]
cmp edx, 7
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
sete byte [esp + 0x18]
mov dword [esp + 0x10], 6
cmp ecx, edi
jne 0x402f6b
inc ecx
test edi, edi
je 0x402f59
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x402f5e
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00418850
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je case.0x40328f.527
cmp eax, 0x10000
jae case.0x40328f.527
movzx edx, ax
mov dword [esp + 8], edx
test dx, dx
jne 0x402fc9
cmp word [edi + 0x375c], dx
je case.0x40328f.527
cmp byte [edi + 0x3759], 0
je case.0x40328f.527
movzx esi, word [edi + 0x375c]
mov eax, edx
and eax, 0xfc00
mov dword [esp + 0xc], 0xd800
cmp ax, word [esp + 0xc]
jne 0x403095
test si, si
je 0x40307b
mov eax, dword [ecx + 0x377c]
lea esi, [ecx + 0x3778]
mov ecx, dword [esi]
xorps xmm0, xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x30], 5
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 0xfffd
cmp ecx, eax
jne 0x40305c
inc ecx
test eax, eax
je 0x403046
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x40304b
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00418850
mov edx, dword [esp + 8]
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x30]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
mov word [edi + 0x375c], dx
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
movzx edx, dx
mov dword [esp + 0xc], edx
test si, si
je 0x403142
mov esi, 0xdc00
cmp ax, si
je 0x403134
mov eax, dword [ecx + 0x377c]
lea esi, [ecx + 0x3778]
mov ecx, dword [esi]
xorps xmm0, xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x30], 5
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 0xfffd
cmp ecx, eax
jne 0x403113
inc ecx
test eax, eax
je 0x4030fd
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 4]
jmp 0x403102
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00418850
mov edx, dword [esp + 0xc]
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x30]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
jmp 0x403139
mov edx, 0xfffd
xor eax, eax
mov word [edi + 0x375c], ax
movzx eax, dx
mov ecx, edi
push eax
call fcn.004051f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x40328f.527
call fcn.00401ae0
test al, al
je case.0x40328f.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
cmp byte [esi + 8], 0
mov dword [esi + 4], eax
jne 0x4031c2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x38], 2
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [esi + 8], 1
cmp byte [edi + 0x3759], 0
je case.0x40328f.527
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [0x451660]
movsx eax, cx
movlpd qword [esp + 0x20], xmm0
shr ecx, 0x10
add esi, 0x3778
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movsx eax, cx
movss dword [esp + 0x18], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
cmp ecx, edi
jne 0x403245
inc ecx
test edi, edi
je 0x403233
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x403238
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00418850
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x40328f.527
movzx eax, byte [eax + 0x4035a0]
jmp dword [eax*4 + 0x403584]
mov edx, dword [esp + 0xc]
cmp dword [esi + 4], edx
jne 0x4032a6
mov dword [esi + 4], 0
mov byte [esi + 8], 0
cmp byte [edi + 0x3759], 0
je case.0x40328f.527
xorps xmm0, xmm0
mov dword [esp + 0x18], 0xff7fffff
movlpd qword [esp + 0x20], xmm0
lea esi, [ecx + 0x3778]
mov dword [esp + 0x1c], 0xff7fffff
jmp 0x40320a
cmp edx, 0x204
je 0x4032ed
xor esi, esi
cmp edx, 0x206
jne 0x4032f2
mov esi, 1
cmp edx, 0x207
je 0x403302
cmp edx, 0x209
jne 0x403307
mov esi, 2
cmp edx, 0x20b
je 0x403317
cmp edx, 0x20d
jne 0x403327
mov esi, dword [ebp + 8]
shr esi, 0x10
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 3
mov ecx, dword [esp + 8]
cmp dword [ecx + 0xc], 0
jne 0x40334a
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x403346
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0xc]
bts eax, esi
push 1
mov dword [ecx + 0xc], eax
mov ecx, edi
push esi
call fcn.00405480
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp edx, 0x205
sete cl
mov dword [esp + 8], ecx
cmp edx, 0x208
jne 0x40338e
mov ecx, 2
jmp 0x4033a6
cmp edx, 0x20c
jne 0x4033aa
mov ecx, dword [ebp + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 8], ecx
mov eax, dword [esi + 0xc]
btr eax, ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4033cd
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0xc]
jne 0x4033c9
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 8]
push 0
push ecx
mov ecx, edi
call fcn.00405480
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
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 [0x44d5c8]
call fcn.00405530
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
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 [0x44d5c8]
call fcn.00405530
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x40328f.527
mov byte [esi + 0x25], 1
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00443af3
mov esp, ebp
pop ebp
ret