Function at 0x42bd6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4f7040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x536900]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], eax
push esi
push edi
test eax, eax
je case.0x42c34c.527
mov edi, dword [eax + 0x74]
lea esi, [eax + 8]
cmp edx, 0x200
ja 0x42c334
je 0x42c2df
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x42c34c.527
movzx eax, byte [eax + 0x42c4d8]
jmp dword [eax*4 + 0x42c4c4]
cmp edx, 0x100
je 0x42bd80
mov byte [ebp - 8], 0
cmp edx, 0x104
jne 0x42bd84
mov byte [ebp - 8], 1
cmp dword [ebx + 8], 0x100
jae case.0x42c34c.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [ebp - 0x24], al
je 0x42bdcc
test al, al
je 0x42bdba
movss xmm3, dword [0x4edf54]
jmp 0x42bdbd
xorps xmm3, xmm3
push dword [ebp - 0x24]
mov ecx, esi
push 0x1000
call fcn.004031c0
push 0x10
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [ebp - 0x24], al
je 0x42be01
test al, al
je 0x42bdef
movss xmm3, dword [0x4edf54]
jmp 0x42bdf2
xorps xmm3, xmm3
push dword [ebp - 0x24]
mov ecx, esi
push 0x2000
call fcn.004031c0
push 0x12
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [ebp - 0x24], al
je 0x42be36
test al, al
je 0x42be24
movss xmm3, dword [0x4edf54]
jmp 0x42be27
xorps xmm3, xmm3
push dword [ebp - 0x24]
mov ecx, esi
push 0x4000
call fcn.004031c0
push 0x5d
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [ebp - 0x24], al
je 0x42be6b
test al, al
je 0x42be59
movss xmm3, dword [0x4edf54]
jmp 0x42be5c
xorps xmm3, xmm3
push dword [ebp - 0x24]
mov ecx, esi
push 0x8000
call fcn.004031c0
mov esi, dword [ebx + 8]
cmp esi, 0xd
jne 0x42be86
mov eax, dword [ebx + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.0042b7c0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x42bee1
mov ecx, dword [0x536900]
add ecx, 8
mov dword [ebp - 0x2c], ecx
cmp byte [ecx + 0x3761], 0
je 0x42becb
cmp byte [ebp - 8], 0
je 0x42beb9
movss xmm3, dword [0x4edf54]
jmp 0x42bebc
xorps xmm3, xmm3
push dword [ebp - 8]
push eax
call fcn.004031c0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
cmp esi, 0x1ff
ja 0x42bee1
mov dword [ecx + esi*4 + 0xb4], eax
mov dword [ecx + eax*4 + 0xb4], esi
cmp esi, 0x10
jne 0x42bfa5
push 0xa0
call edi
mov cl, byte [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x42bf42
mov eax, dword [0x536900]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x42bf2e
test cl, cl
je 0x42bf1c
movss xmm3, dword [0x4edf54]
jmp 0x42bf1f
xorps xmm3, xmm3
push dword [ebp - 8]
mov ecx, esi
push 0x210
call fcn.004031c0
mov dword [esi + 0x334], 0x210
mov dword [esi + 0x8f4], 0xa0
push 0xa1
call edi
mov cl, byte [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x42c34c.527
mov esi, dword [0x536900]
cmp byte [esi + 0x3769], 0
je 0x42bf8c
test cl, cl
je 0x42bf76
movss xmm0, dword [0x4edf54]
jmp 0x42bf79
xorps xmm0, xmm0
push dword [ebp - 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.004031c0
mov dword [esi + 0x340], 0x214
mov dword [esi + 0x90c], 0xa1
jmp case.0x42c34c.527
cmp esi, 0x11
jne 0x42c069
push 0xa2
call edi
mov cl, byte [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x42c006
mov eax, dword [0x536900]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x42bff2
test cl, cl
je 0x42bfe0
movss xmm3, dword [0x4edf54]
jmp 0x42bfe3
xorps xmm3, xmm3
push dword [ebp - 8]
mov ecx, esi
push 0x20f
call fcn.004031c0
mov dword [esi + 0x33c], 0x20f
mov dword [esi + 0x8f0], 0xa2
push 0xa3
call edi
mov cl, byte [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x42c34c.527
mov esi, dword [0x536900]
cmp byte [esi + 0x3769], 0
je 0x42c050
test cl, cl
je 0x42c03a
movss xmm0, dword [0x4edf54]
jmp 0x42c03d
xorps xmm0, xmm0
push dword [ebp - 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.004031c0
mov dword [esi + 0x348], 0x213
mov dword [esi + 0x908], 0xa3
jmp case.0x42c34c.527
cmp esi, 0x12
jne case.0x42c34c.527
push 0xa4
call edi
mov cl, byte [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x42c0ca
mov eax, dword [0x536900]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x42c0b6
test cl, cl
je 0x42c0a4
movss xmm3, dword [0x4edf54]
jmp 0x42c0a7
xorps xmm3, xmm3
push dword [ebp - 8]
mov ecx, esi
push 0x211
call fcn.004031c0
mov dword [esi + 0x344], 0x211
mov dword [esi + 0x8f8], 0xa4
push 0xa5
call edi
mov cl, byte [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x42c34c.527
mov esi, dword [0x536900]
cmp byte [esi + 0x3769], 0
je 0x42c114
test cl, cl
je 0x42c0fe
movss xmm0, dword [0x4edf54]
jmp 0x42c101
xorps xmm0, xmm0
push dword [ebp - 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.004031c0
mov dword [esi + 0x350], 0x215
mov dword [esi + 0x910], 0xa5
jmp case.0x42c34c.527
mov esi, dword [ebp - 8]
cmp edx, 7
mov edx, dword [esi + 0x3780]
lea edi, [esi + 0x3780]
sete byte [ebp - 0x25]
sub edx, 1
js 0x42c161
mov eax, dword [esi + 0x3788]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
cmp dword [eax], 6
je 0x42c1a0
sub eax, 0x18
sub edx, 1
jns 0x42c154
cmp byte [esi + 0x3768], 0
sete al
mov cl, byte [ebp - 0x25]
cmp al, cl
je case.0x42c34c.527
mov esi, dword [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 0x18], cl
mov ecx, dword [edi]
mov dword [ebp - 0x20], 6
cmp ecx, esi
jne 0x42c1b7
inc ecx
test esi, esi
je 0x42c1a5
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x42c1aa
mov al, byte [eax + 8]
jmp 0x42c16b
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00418ea0
mov eax, dword [edi]
movups xmm0, xmmword [ebp - 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi]
jmp case.0x42c34c.527
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x42c200
mov ecx, dword [ebx + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x42c34c.527
push ecx
mov ecx, esi
call fcn.00403020
jmp case.0x42c34c.527
push 1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
lea eax, [ebx + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [ebp - 8]
test eax, eax
je case.0x42c34c.527
cmp byte [esi + 0x3761], 0
je case.0x42c34c.527
mov esi, dword [0x536900]
xorps xmm0, xmm0
add esi, 0x3780
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 2
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x18], eax
cmp ecx, edi
jne 0x42c28d
inc ecx
test edi, edi
je 0x42c27b
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x42c280
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00418ea0
mov eax, dword [esi]
movups xmm0, xmmword [ebp - 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
jmp case.0x42c34c.527
cmp word [ebx + 0xc], 1
jne case.0x42c34c.527
call fcn.0042ad20
test al, al
je case.0x42c34c.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a3760
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [edi + 8], 0
mov dword [edi + 4], ecx
jne 0x42c30e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [edi + 8], 1
mov ecx, dword [ebx + 0xc]
mov eax, ecx
shr eax, 0x10
cwde
movd xmm2, eax
movsx eax, cx
mov ecx, esi
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.00403320
jmp case.0x42c34c.527
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x42c34c.527
movzx eax, byte [eax + 0x42c5f4]
jmp dword [eax*4 + 0x42c5d8]
cmp dword [edi + 4], ecx
jne 0x42c35f
mov dword [edi + 4], 0
movss xmm1, dword [0x4ee064]
mov ecx, esi
movaps xmm2, xmm1
mov byte [edi + 8], 0
call fcn.00403320
jmp case.0x42c34c.527
xor esi, esi
cmp edx, 0x204
je 0x42c38c
cmp edx, 0x206
jne 0x42c391
mov esi, 1
cmp edx, 0x207
je 0x42c3a1
cmp edx, 0x209
jne 0x42c3a6
mov esi, 2
cmp edx, 0x20b
je 0x42c3b6
cmp edx, 0x20d
jne 0x42c3c6
mov esi, dword [ebx + 8]
shr esi, 0x10
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 3
cmp dword [edi + 0xc], 0
jne 0x42c3df
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x42c3df
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
bts eax, esi
push 1
push esi
mov dword [edi + 0xc], eax
lea ecx, [ecx + 8]
call fcn.00403480
jmp case.0x42c34c.527
xor ecx, ecx
cmp edx, 0x205
sete cl
mov dword [ebp - 8], ecx
cmp edx, 0x208
jne 0x42c418
mov ecx, 2
jmp 0x42c430
cmp edx, 0x20c
jne 0x42c433
mov ecx, dword [ebx + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0xc]
btr eax, ecx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x42c454
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0x24]
jne 0x42c451
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 8]
push 0
push ecx
mov ecx, esi
call fcn.00403480
jmp case.0x42c34c.527
mov eax, dword [ebx + 8]
xorps xmm1, xmm1
shr eax, 0x10
mov ecx, esi
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x4ee014]
call fcn.00403570
jmp case.0x42c34c.527
mov eax, dword [ebx + 8]
xorps xmm2, xmm2
shr eax, 0x10
mov ecx, esi
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x4ee014]
call fcn.00403570
jmp case.0x42c34c.527
cmp dword [ebx + 8], 7
jne case.0x42c34c.527
mov byte [edi + 0x25], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a3760
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret