Function at 0x429430
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 [0x4fe040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4feb00]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], eax
push esi
push edi
test eax, eax
je case.0x429a7c.527
mov edi, dword [eax + 0x74]
lea esi, [eax + 8]
cmp edx, 0x200
ja 0x429a64
je 0x429a0f
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x429a7c.527
movzx eax, byte [eax + 0x429c08]
jmp dword [eax*4 + 0x429bf4]
cmp edx, 0x100
je 0x4294b0
mov byte [ebp - 8], 0
cmp edx, 0x104
jne 0x4294b4
mov byte [ebp - 8], 1
cmp dword [ebx + 8], 0x100
jae case.0x429a7c.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 0x4294fc
test al, al
je 0x4294ea
movss xmm3, dword [0x4f92f0]
jmp 0x4294ed
xorps xmm3, xmm3
push dword [ebp - 0x24]
mov ecx, esi
push 0x1000
call fcn.00402ec0
push 0x10
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [ebp - 0x24], al
je 0x429531
test al, al
je 0x42951f
movss xmm3, dword [0x4f92f0]
jmp 0x429522
xorps xmm3, xmm3
push dword [ebp - 0x24]
mov ecx, esi
push 0x2000
call fcn.00402ec0
push 0x12
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [ebp - 0x24], al
je 0x429566
test al, al
je 0x429554
movss xmm3, dword [0x4f92f0]
jmp 0x429557
xorps xmm3, xmm3
push dword [ebp - 0x24]
mov ecx, esi
push 0x4000
call fcn.00402ec0
push 0x5d
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [ebp - 0x24], al
je 0x42959b
test al, al
je 0x429589
movss xmm3, dword [0x4f92f0]
jmp 0x42958c
xorps xmm3, xmm3
push dword [ebp - 0x24]
mov ecx, esi
push 0x8000
call fcn.00402ec0
mov esi, dword [ebx + 8]
cmp esi, 0xd
jne 0x4295b6
mov eax, dword [ebx + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.00428ef0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x429611
mov ecx, dword [0x4feb00]
add ecx, 8
mov dword [ebp - 0x2c], ecx
cmp byte [ecx + 0x3761], 0
je 0x4295fb
cmp byte [ebp - 8], 0
je 0x4295e9
movss xmm3, dword [0x4f92f0]
jmp 0x4295ec
xorps xmm3, xmm3
push dword [ebp - 8]
push eax
call fcn.00402ec0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
cmp esi, 0x1ff
ja 0x429611
mov dword [ecx + esi*4 + 0xb4], eax
mov dword [ecx + eax*4 + 0xb4], esi
cmp esi, 0x10
jne 0x4296d5
push 0xa0
call edi
mov cl, byte [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x429672
mov eax, dword [0x4feb00]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x42965e
test cl, cl
je 0x42964c
movss xmm3, dword [0x4f92f0]
jmp 0x42964f
xorps xmm3, xmm3
push dword [ebp - 8]
mov ecx, esi
push 0x210
call fcn.00402ec0
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.0x429a7c.527
mov esi, dword [0x4feb00]
cmp byte [esi + 0x3769], 0
je 0x4296bc
test cl, cl
je 0x4296a6
movss xmm0, dword [0x4f92f0]
jmp 0x4296a9
xorps xmm0, xmm0
push dword [ebp - 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.00402ec0
mov dword [esi + 0x340], 0x214
mov dword [esi + 0x90c], 0xa1
jmp case.0x429a7c.527
cmp esi, 0x11
jne 0x429799
push 0xa2
call edi
mov cl, byte [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x429736
mov eax, dword [0x4feb00]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x429722
test cl, cl
je 0x429710
movss xmm3, dword [0x4f92f0]
jmp 0x429713
xorps xmm3, xmm3
push dword [ebp - 8]
mov ecx, esi
push 0x20f
call fcn.00402ec0
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.0x429a7c.527
mov esi, dword [0x4feb00]
cmp byte [esi + 0x3769], 0
je 0x429780
test cl, cl
je 0x42976a
movss xmm0, dword [0x4f92f0]
jmp 0x42976d
xorps xmm0, xmm0
push dword [ebp - 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.00402ec0
mov dword [esi + 0x348], 0x213
mov dword [esi + 0x908], 0xa3
jmp case.0x429a7c.527
cmp esi, 0x12
jne case.0x429a7c.527
push 0xa4
call edi
mov cl, byte [ebp - 8]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x4297fa
mov eax, dword [0x4feb00]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x4297e6
test cl, cl
je 0x4297d4
movss xmm3, dword [0x4f92f0]
jmp 0x4297d7
xorps xmm3, xmm3
push dword [ebp - 8]
mov ecx, esi
push 0x211
call fcn.00402ec0
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.0x429a7c.527
mov esi, dword [0x4feb00]
cmp byte [esi + 0x3769], 0
je 0x429844
test cl, cl
je 0x42982e
movss xmm0, dword [0x4f92f0]
jmp 0x429831
xorps xmm0, xmm0
push dword [ebp - 8]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.00402ec0
mov dword [esi + 0x350], 0x215
mov dword [esi + 0x910], 0xa5
jmp case.0x429a7c.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 0x429891
mov eax, dword [esi + 0x3788]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
cmp dword [eax], 6
je 0x4298d0
sub eax, 0x18
sub edx, 1
jns 0x429884
cmp byte [esi + 0x3768], 0
sete al
mov cl, byte [ebp - 0x25]
cmp al, cl
je case.0x429a7c.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 0x4298e7
inc ecx
test esi, esi
je 0x4298d5
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x4298da
mov al, byte [eax + 8]
jmp 0x42989b
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.004181e0
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.0x429a7c.527
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x429930
mov ecx, dword [ebx + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x429a7c.527
push ecx
mov ecx, esi
call fcn.00402d20
jmp case.0x429a7c.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.0x429a7c.527
cmp byte [esi + 0x3761], 0
je case.0x429a7c.527
mov esi, dword [0x4feb00]
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 0x4299bd
inc ecx
test edi, edi
je 0x4299ab
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x4299b0
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.004181e0
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.0x429a7c.527
cmp word [ebx + 0xc], 1
jne case.0x429a7c.527
call fcn.00428470
test al, al
je case.0x429a7c.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e7f2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp byte [edi + 8], 0
mov dword [edi + 4], ecx
jne 0x429a3e
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.00403000
jmp case.0x429a7c.527
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x429a7c.527
movzx eax, byte [eax + 0x429d24]
jmp dword [eax*4 + 0x429d08]
cmp dword [edi + 4], ecx
jne 0x429a8f
mov dword [edi + 4], 0
movss xmm1, dword [0x4f93d0]
mov ecx, esi
movaps xmm2, xmm1
mov byte [edi + 8], 0
call fcn.00403000
jmp case.0x429a7c.527
xor esi, esi
cmp edx, 0x204
je 0x429abc
cmp edx, 0x206
jne 0x429ac1
mov esi, 1
cmp edx, 0x207
je 0x429ad1
cmp edx, 0x209
jne 0x429ad6
mov esi, 2
cmp edx, 0x20b
je 0x429ae6
cmp edx, 0x20d
jne 0x429af6
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 0x429b0f
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x429b0f
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.00403160
jmp case.0x429a7c.527
xor ecx, ecx
cmp edx, 0x205
sete cl
mov dword [ebp - 8], ecx
cmp edx, 0x208
jne 0x429b48
mov ecx, 2
jmp 0x429b60
cmp edx, 0x20c
jne 0x429b63
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 0x429b84
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0x24]
jne 0x429b81
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 8]
push 0
push ecx
mov ecx, esi
call fcn.00403160
jmp case.0x429a7c.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 [0x4f9374]
call fcn.00403250
jmp case.0x429a7c.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 [0x4f9374]
call fcn.00403250
jmp case.0x429a7c.527
cmp dword [ebx + 8], 7
jne case.0x429a7c.527
mov byte [edi + 0x25], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0043e7f2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret