Function at 0x10038370
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x1010230c]
push ebx
mov dword [esp + 0x10], ecx
push esi
mov ecx, dword [eax]
push edi
test ecx, ecx
je 0x10038a70
mov eax, dword [ecx]
mov eax, dword [eax + 0x26c]
call eax
test al, al
je 0x10038a70
mov eax, dword [0x1010230c]
mov esi, dword [0x100ffc08]
mov ecx, esi
push 0xf412939a
mov edi, dword [eax]
call fcn.100246c0
movd xmm1, dword [0x10105bd8]
movzx ecx, ax
mov eax, dword [0x100ffbfc]
cvtdq2ps xmm1, xmm1
mov eax, dword [eax + 0x10]
movss xmm0, dword [ecx + edi]
mulss xmm1, dword [eax + 0x20]
comiss xmm0, xmm1
ja 0x10038a70
push 0x66dc9d6d
mov ecx, esi
call fcn.100246c0
movzx eax, ax
cmp byte [eax + edi], 0
jne 0x10038a70
push 0x76649c6f
mov ecx, esi
call fcn.100246c0
movzx eax, ax
cmp byte [eax + edi], 0
jne 0x10038a70
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x42c]
call eax
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x10038a70
mov edi, dword [0x100ffc08]
mov ecx, edi
push 0xb22c092c
call fcn.100246c0
movzx ecx, ax
cmp dword [ecx + ebx], 0
je 0x10038a70
push 0xb439d47
mov ecx, edi
call fcn.100246c0
movd xmm1, dword [0x10105bd8]
movzx ecx, ax
mov eax, dword [0x100ffbfc]
cvtdq2ps xmm1, xmm1
mov eax, dword [eax + 0x10]
movss xmm0, dword [ecx + ebx]
mulss xmm1, dword [eax + 0x20]
comiss xmm0, xmm1
ja 0x10038a70
push 0x96ed4d1e
mov ecx, edi
call fcn.100246c0
movzx ecx, ax
mov eax, dword [0x1010230c]
mov eax, dword [eax]
cmp dword [ecx + eax], 0
jle 0x100384ca
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x730]
call eax
test eax, eax
je 0x10038a70
mov al, byte [eax + 0xec]
test al, al
je 0x10038a70
mov edi, dword [0x100ffc08]
push 0x19cdc55d
mov ecx, edi
call fcn.100246c0
movzx eax, ax
mov cx, word [eax + ebx]
call fcn.10029a00
mov edx, eax
test edx, edx
je 0x10038a70
mov esi, dword [0x100ffbf8]
lea ecx, [edx*8]
sub ecx, edx
cmp byte [esi + ecx*4 + 0x64c], 0
jne 0x1003851f
push 0x19cdc55d
mov ecx, edi
call fcn.100246c0
movzx eax, ax
mov cx, word [eax + ebx]
call fcn.10029bc0
mov edx, eax
lea eax, [edx*8]
xor ecx, ecx
sub eax, edx
cmp byte [esi + eax*4 + 0x64c], cl
cmovne ecx, edx
lea ebx, [ecx*8]
sub ebx, ecx
cmp byte [esi + ebx*4 + 0x64c], 0
je 0x10038a70
mov eax, dword [0x100ffbfc]
mov eax, dword [eax + 0x10]
movss xmm0, dword [eax]
movaps xmm1, xmm0
movss dword [esp + 0x1c], xmm0
subss xmm1, dword [0x10102320]
movss xmm0, dword [esi + ebx*4 + 0x664]
comiss xmm0, xmm1
ja 0x10038a68
cmp byte [esi + ebx*4 + 0x652], 0
mov dword [0x10102320], 0
je 0x100385aa
push dword [esi + ebx*4 + 0x654]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10038a70
mov edi, dword [0x100ffc08]
movd xmm0, dword [esi + ebx*4 + 0x65c]
movss xmm1, dword [esp + 0x1c]
subss xmm1, dword [0x1010231c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100f616c]
comiss xmm0, xmm1
ja 0x10038a70
cmp byte [esi + ebx*4 + 0x64f], 0
jne 0x10038608
push 0x346c4efc
mov ecx, edi
call fcn.100246c0
movss xmm0, dword [0x100f6328]
movzx ecx, ax
mov eax, dword [0x1010230c]
mov eax, dword [eax]
comiss xmm0, dword [ecx + eax - 8]
jb 0x10038a70
cmp byte [esi + ebx*4 + 0x64e], 0
mov edi, dword [esp + 0x14]
je 0x1003864b
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x718]
call eax
cmp eax, 5
jne 0x1003864b
mov ecx, dword [0x100ffc08]
push 0x747d37fc
call fcn.100246c0
movzx ecx, ax
mov eax, dword [0x1010230c]
mov eax, dword [eax]
cmp byte [ecx + eax], 0
je 0x10038a70
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x730]
call eax
mov dword [esp + 0x10], eax
test eax, eax
je 0x10038a70
mov ecx, dword [0x1010230c]
lea eax, [esp + 0x20]
push eax
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x470]
call edx
lea edx, [esp + 0xa8]
push edx
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
mov eax, dword [0x1010230c]
movq qword [esp + 0x4c], xmm0
movq qword [esp + 0x40], xmm0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x564]
call eax
mov edi, dword [esp + 0x18]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esp + 0x20], xmm0
movss xmm0, dword [edi + 0xc]
addss xmm0, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mulss xmm0, dword [0x100f6194]
movss dword [esp + 0x38], xmm0
call fcn.100d7b0b
movss xmm1, dword [edi + 0x10]
addss xmm1, dword [esp + 0x24]
movss dword [esp + 0xc], xmm0
mulss xmm1, dword [0x100f6194]
movaps xmm0, xmm1
call fcn.100d60c2
mov edi, dword [esp + 0x10]
movaps xmm1, xmm0
shufps xmm1, xmm0, 1
mulss xmm0, dword [esp + 0xc]
mulss xmm1, dword [esp + 0xc]
movss xmm3, dword [edi + 0x108]
mulss xmm0, xmm3
mulss xmm1, xmm3
addss xmm0, dword [esp + 0x40]
addss xmm1, dword [esp + 0x3c]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x38]
movss dword [esp + 0x20], xmm1
call fcn.100d60c2
cmp byte [esi + ebx*4 + 0x650], 0
mulss xmm0, dword [edi + 0x108]
xorps xmm0, xmmword [0x100f6c00]
addss xmm0, dword [esp + 0x44]
movss dword [esp + 0x28], xmm0
jne 0x100387b4
mov eax, dword [0x100ffbfc]
movq xmm0, qword [esp + 0x20]
push 1
sub esp, 0xc
mov edx, dword [eax + 0x30]
mov ecx, esp
mov eax, dword [esp + 0x38]
sub esp, 0xc
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x64]
mov dword [ecx + 8], eax
mov eax, esp
mov ecx, dword [esp + 0x4c]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
call edx
add esp, 0x1c
test al, al
jne 0x10038a70
mov eax, dword [0x100ffc00]
lea ecx, [esp + 0xb8]
mov edi, dword [eax + 0xc]
mov eax, dword [0x1010230c]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x34], 0x100ec6b4
push eax
call fcn.10029d10
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0xc0]
push 0x46004009
push ecx
mov ecx, edi
call eax
movss xmm0, dword [esp + 0x1c]
mov ecx, dword [esp + 0x9c]
movss dword [0x1010231c], xmm0
test ecx, ecx
je 0x10038a70
mov eax, dword [ecx]
mov eax, dword [eax + 0x274]
call eax
test al, al
je 0x10038a70
cmp byte [esi + ebx*4 + 0x64d], 0
jne 0x1003885e
mov eax, dword [0x1010230c]
push dword [esp + 0x9c]
mov ecx, dword [eax]
mov eax, dword [0x100ffbfc]
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x10038a70
mov edi, dword [0x100ffc08]
mov ecx, edi
push 0xe7cc7916
call fcn.100246c0
mov ecx, dword [esp + 0x9c]
movzx eax, ax
cmp byte [eax + ecx], 0
jne 0x10038a70
mov eax, dword [esi + ebx*4 + 0x658]
test eax, eax
je 0x1003889c
cmp dword [esp + 0x94], eax
jne 0x10038a70
push 0x19cdc55d
mov ecx, edi
call fcn.100246c0
mov ecx, dword [esp + 0x14]
movss xmm0, dword [0x100f6254]
movzx eax, ax
cmp word [eax + ecx], 0x1f
je case.0x100388cb.2
mov eax, dword [esp + 0x94]
dec eax
cmp eax, 6
ja case.0x100388cb.2
jmp dword [eax*4 + 0x10038a78]
movss xmm0, dword [0x100f62c4]
jmp case.0x100388cb.2
movss xmm0, dword [0x100f6264]
jmp case.0x100388cb.2
movss xmm0, dword [0x100f6230]
mov eax, dword [esp + 0x10]
movss dword [esp + 0xc], xmm0
movss xmm1, dword [eax + 0x108]
mulss xmm1, dword [esp + 0x7c]
movss xmm0, dword [eax + 0x10c]
mulss xmm1, dword [0x100f6178]
call fcn.100d8a71
mov eax, dword [esp + 0x10]
movaps xmm2, xmm0
movss xmm4, dword [0x100f620c]
mov ecx, edi
push 0x19cdc55d
movd xmm1, dword [eax + 0xf0]
movss xmm3, dword [eax + 0xf4]
cvtdq2ps xmm1, xmm1
mulss xmm3, xmm4
mulss xmm1, dword [esp + 0x10]
mulss xmm2, xmm1
movss dword [esp + 0x14], xmm2
call fcn.100246c0
mov ecx, dword [esp + 0x14]
movzx eax, ax
cmp word [eax + ecx], 0x1f
je 0x10038a1a
push 0xb8431dd9
mov ecx, edi
call fcn.100246c0
mov ecx, dword [esp + 0x9c]
movzx edx, ax
mov eax, dword [esp + 0x94]
cmp eax, 1
je 0x1003899f
add eax, 0xfffffffe
cmp eax, 3
ja 0x10038a21
jmp 0x100389a5
cmp byte [edx + ecx], 0
je 0x10038a21
push 0x7ca9f5ea
mov ecx, edi
call fcn.100246c0
mov ecx, dword [esp + 0x9c]
movaps xmm0, xmm3
movzx eax, ax
mulss xmm0, xmm2
movd xmm1, dword [eax + ecx]
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm4
comiss xmm0, xmm1
jbe 0x100389fb
push 0x7ca9f5ea
mov ecx, edi
call fcn.100246c0
mov ecx, dword [esp + 0x9c]
movzx eax, ax
movd xmm1, dword [eax + ecx]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x100f62c4]
jmp 0x100389fe
movaps xmm1, xmm2
movss xmm0, dword [0x100f6254]
subss xmm0, xmm3
mulss xmm0, xmm1
subss xmm2, xmm0
movss dword [esp + 0x10], xmm2
jmp 0x10038a21
mov ecx, dword [esp + 0x9c]
cmp byte [esi + ebx*4 + 0x651], 0
je 0x10038a3d
mov eax, dword [ecx]
mov eax, dword [eax + 0x1e4]
call eax
movss xmm2, dword [esp + 0x10]
jmp 0x10038a44
mov eax, dword [esi + ebx*4 + 0x660]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm2, xmm0
jb 0x10038a70
movss xmm0, dword [esp + 0x1c]
mov dword [0x1010231c], 0
movss dword [0x10102320], xmm0
mov eax, dword [esp + 0x18]
or dword [eax + 0x30], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret