Function at 0x1016b620
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10255374]
push esi
push edi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10320b10]
mov dword [esp + 0x14], esi
cmp eax, dword [esi + 4]
jle 0x1016b68f
push 0x10320b10
call fcn.101987e8
add esp, 4
cmp dword [0x10320b10], 0xffffffff
jne 0x1016b68f
push 0x10320b10
mov dword [0x10320a40], 0
mov dword [0x10320a3c], 0
mov dword [0x10320a38], 0
call fcn.10198797
add esp, 4
mov eax, dword [0x10320ae8]
cmp eax, dword [esi + 4]
jle 0x1016b6dd
push 0x10320ae8
call fcn.101987e8
add esp, 4
cmp dword [0x10320ae8], 0xffffffff
jne 0x1016b6dd
push 0x10320ae8
mov dword [0x10320b1c], 0
mov dword [0x10320b18], 0
mov dword [0x10320b14], 0
call fcn.10198797
add esp, 4
mov eax, dword [0x10320a24]
cmp eax, dword [esi + 4]
jle 0x1016b721
push 0x10320a24
call fcn.101987e8
add esp, 4
cmp dword [0x10320a24], 0xffffffff
jne 0x1016b721
push 0x10320a24
mov dword [0x10320a64], 0
mov dword [0x10320a60], 0x1031d5cc
call fcn.10198797
add esp, 4
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.10078d00
test al, al
jne 0x1016b748
cmp dword [0x1031d5cc], 0
je 0x1016b748
mov eax, dword [0x10320a60]
mov eax, dword [eax]
test eax, eax
jne 0x1016b783
mov dword [0x10320a64], eax
mov byte [0x10316bb8], 0
mov byte [0x10316b5c], 0
mov dword [0x10252e60], 0
mov dword [0x10252e64], 0
mov dword [0x10252e68], 0
mov byte [0x10316b68], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push eax
call esi
shr eax, 0xf
and al, 1
movzx eax, al
mov dword [0x10320a64], eax
je 0x1016b748
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x24]
call eax
cmp byte [0x10316b5c], 0
movss xmm0, dword [eax]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x48], xmm0
jne 0x1016b812
mov ecx, edi
call fcn.10079030
test al, al
je 0x1016b8e3
movss xmm0, dword [esp + 0x40]
movss dword [0x10252e60], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [0x10252e64], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [0x10252e68], xmm0
mov byte [0x10316b5c], 1
jmp 0x1016b8e3
mov ecx, dword [esp + 0x14]
mov eax, dword [0x10320aa4]
cmp eax, dword [ecx + 4]
jle 0x1016b86a
push 0x10320aa4
call fcn.101987e8
add esp, 4
cmp dword [0x10320aa4], 0xffffffff
jne 0x1016b86a
xorps xmm0, xmm0
lea ecx, [esp + 0x20]
movlpd qword [0x10320ae0], xmm0
call fcn.1008cf30
push 0x10320aa4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x10320ae0], ecx
mov dword [0x10320ae4], eax
call fcn.10198797
add esp, 4
lea ecx, [esp + 0x20]
call fcn.1008cf30
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x10320ae0]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x10320ae4]
mov dword [esp + 0x24], eax
js 0x1016b8e3
jg 0x1016b897
cmp ecx, 0x29b92700
jb 0x1016b8e3
lea ecx, [esp + 0x128]
call fcn.1008cf30
mov edx, 0x10252e60
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x10320ae4], eax
lea eax, [esp + 0x34]
push ecx
mov dword [0x10320ae0], ecx
mov ecx, 0x10238354
push eax
call fcn.10149af0
add esp, 8
cmp byte [0x1031d700], 0
jne 0x1016be9d
cmp byte [0x10316bb8], 0
jne 0x1016bdd9
mov ecx, edi
call fcn.10079030
test al, al
je 0x1016bdbf
mov ecx, dword [0x102556bc]
lea edx, [esp + 0x4c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x4c]
call eax
movss xmm0, dword [esp + 0x4c]
lea eax, [esp + 0x20]
movss xmm1, dword [0x1023d058]
xorps xmm2, xmm2
mulss xmm0, xmm1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x6c]
movss dword [esp + 0x30], xmm2
movss dword [esp + 0x2c], xmm2
movss dword [esp + 0x28], xmm2
mov dword [esp + 0x18], eax
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
fsincos
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esp + 0x50]
lea eax, [esp + 0x74]
mulss xmm0, xmm1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x18], eax
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
fsincos
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [esp + 0x54]
lea eax, [esp + 0x64]
mulss xmm0, xmm1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x18], eax
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
fsincos
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
fstp dword [edx]
fstp dword [eax]
movss xmm6, dword [esp + 0x68]
movss xmm5, dword [esp + 0x64]
movaps xmm3, xmm6
mulss xmm5, dword [0x1023d440]
push 0x41
mulss xmm3, dword [esp + 0x70]
movss xmm7, dword [esp + 0x74]
xorps xmm7, xmmword [0x1023da60]
mulss xmm6, dword [0x1023d440]
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x78]
mulss xmm3, dword [esp + 0x74]
mulss xmm6, dword [esp + 0x24]
mulss xmm7, xmm5
mulss xmm5, dword [esp + 0x78]
subss xmm7, xmm0
movss dword [esp + 0x18], xmm6
subss xmm5, xmm3
movss dword [esp + 0x1c], xmm7
movss dword [esp + 0x20], xmm5
call esi
test ax, ax
js 0x1016ba7c
push 0x57
call esi
test ax, ax
js 0x1016ba7c
push 0x44
call esi
test ax, ax
js 0x1016ba7c
push 0x53
call esi
test ax, ax
jns 0x1016bdbf
xor eax, eax
mov dword [esp + 0x80], 0
push 0x41
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x24], vtable.CTraceFilterWorldAndPropsOnly.0
mov dword [esp + 0x28], eax
call esi
test ax, ax
js 0x1016bbb0
push 0x57
call esi
test ax, ax
js 0x1016bbb0
push 0x44
call esi
test ax, ax
js 0x1016bb3d
push 0x53
call esi
test ax, ax
jns 0x1016bc27
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.10086020
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx + 0x24]
mov ecx, edi
call edx
movss xmm1, dword [0x1031d368]
movss xmm2, dword [esp + 0x18]
movss xmm0, dword [esi]
addss xmm0, dword [eax]
movss xmm3, dword [esp + 0x1c]
mulss xmm2, xmm1
mulss xmm3, xmm1
addss xmm2, xmm0
movss dword [esp + 0x28], xmm2
movss xmm2, dword [esi + 4]
addss xmm2, dword [eax + 4]
addss xmm2, xmm3
movss xmm3, dword [esp + 0x14]
mulss xmm3, xmm1
movss dword [esp + 0x2c], xmm2
movss xmm2, dword [esi + 8]
addss xmm2, dword [eax + 8]
addss xmm2, xmm3
jmp 0x1016bc21
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.10086020
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx + 0x24]
mov ecx, edi
call edx
movss xmm0, dword [0x1031d368]
movss xmm2, dword [esi]
movss xmm3, dword [esp + 0x18]
addss xmm2, dword [eax]
mulss xmm3, xmm0
subss xmm2, xmm3
movss xmm3, dword [esp + 0x1c]
mulss xmm3, xmm0
movss dword [esp + 0x28], xmm2
movss xmm2, dword [esi + 4]
addss xmm2, dword [eax + 4]
subss xmm2, xmm3
movss xmm3, dword [esp + 0x14]
mulss xmm3, xmm0
movss dword [esp + 0x2c], xmm2
movss xmm2, dword [esi + 8]
addss xmm2, dword [eax + 8]
subss xmm2, xmm3
movss dword [esp + 0x30], xmm2
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.10086020
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx + 0x24]
mov ecx, edi
call edx
movss xmm3, dword [esi]
movss xmm4, dword [esi + 4]
movss xmm5, dword [esi + 8]
addss xmm3, dword [eax]
addss xmm4, dword [eax + 4]
addss xmm5, dword [eax + 8]
movss xmm0, dword [esp + 0x28]
movss xmm2, dword [esp + 0x2c]
movss xmm1, dword [esp + 0x30]
subss xmm0, xmm3
subss xmm2, xmm4
mov byte [esp + 0x111], 1
subss xmm1, xmm5
movss dword [esp + 0xe0], xmm0
movss dword [esp + 0xe4], xmm2
mulss xmm0, xmm0
mulss xmm2, xmm2
movss dword [esp + 0xe8], xmm1
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x1016bcc3
mov byte [esp + 0x111], 0
mov ecx, dword [0x102557e0]
lea edx, [esp + 0x78]
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x104], 0
push edx
mov dword [esp + 0x10c], 0
lea edx, [esp + 0xd8]
mov dword [esp + 0x110], 0
mov byte [esp + 0x118], 1
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
movss dword [esp + 0xd8], xmm3
movss dword [esp + 0xdc], xmm4
movss dword [esp + 0xe0], xmm5
mov eax, dword [ecx]
push 0x200400b
push edx
call dword [eax + 0x10]
movss xmm1, dword [esp + 0x78]
mov al, 1
movss xmm0, dword [esp + 0x84]
movss xmm2, dword [esp + 0x7c]
subss xmm0, xmm1
movss xmm3, dword [esp + 0x80]
movss dword [0x10320a38], xmm1
movss dword [0x10320a3c], xmm2
movss dword [0x10320a40], xmm3
movss dword [0x10320b14], xmm0
movss xmm0, dword [esp + 0x88]
subss xmm0, xmm2
mov byte [0x10316bb8], al
movss dword [0x10320b18], xmm0
movss xmm0, dword [esp + 0x8c]
subss xmm0, xmm3
movss dword [0x10320b1c], xmm0
jmp 0x1016bdc4
mov al, byte [0x10316bb8]
cmp byte [0x1031d700], 0
jne 0x1016be9d
test al, al
je 0x1016be9d
movss xmm2, dword [0x1023d2f0]
mov esi, 0xa
nop word [eax + eax]
movd xmm1, esi
lea edx, [esp + 0x34]
cvtdq2ps xmm1, xmm1
mov ecx, edi
movss xmm0, dword [0x10320b14]
divss xmm1, xmm2
mulss xmm0, xmm1
addss xmm0, dword [0x10320a38]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [0x10320b18]
mulss xmm0, xmm1
addss xmm0, dword [0x10320a3c]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [0x10320b1c]
mulss xmm0, xmm1
addss xmm0, dword [0x10320a40]
movss dword [esp + 0x3c], xmm0
call fcn.1016b4f0
test al, al
jne 0x1016bec3
mov ecx, dword [0x1031695c]
lea edx, [esp + 0x34]
push ecx
mov dword [esp], 0x3d23d70a
push 0
mov eax, dword [ecx]
push 0x64
push 0x5a
push 0x3b
push 0xeb
push edx
push 0x10252e60
call dword [eax + 0x48]
movss xmm2, dword [0x1023d2f0]
add esi, 0xa
cmp esi, 0x64
jl 0x1016bdf0
mov byte [0x10316b68], 1
mov esi, dword [ebp + 8]
mov eax, dword [0x10316ba8]
test byte [eax + 0x24], 1
jne 0x1016bf1b
cmp byte [0x10316760], 0
jne 0x1016bf1b
cmp byte [0x10316b68], 0
je 0x1016b77b
jmp 0x1016bf22
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.100860d0
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push ecx
mov dword [esp], 0x3f800000
mov edx, edi
push eax
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.100a95e0
mov ecx, dword [0x1031695c]
lea edx, [esp + 0x40]
add esp, 8
mov eax, dword [ecx]
mov dword [esp], 0x3d23d70a
push 0
push 0x64
push 0x32
push 0xbd
push 0x44
push edx
push 0x10252e60
call dword [eax + 0x48]
jmp 0x1016bea0
mov byte [0x10316b68], 1
movss xmm1, dword [esp + 0x40]
movss xmm0, dword [esp + 0x44]
subss xmm0, dword [0x10252e64]
subss xmm1, dword [0x10252e60]
movss xmm2, dword [esp + 0x48]
subss xmm2, dword [0x10252e68]
mulss xmm0, xmm0
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm0, xmm1
addss xmm0, xmm2
call fcn.10076060
movss xmm1, dword [0x1023d254]
comiss xmm1, xmm0
jbe 0x1016bfaf
cmp byte [0x1031d464], 0
je 0x1016b774
cmp byte [0x10316750], 0
jne 0x1016b774
cmp dword [0x10316764], 0
jne 0x1016b774
mov byte [0x10316908], 1
mov byte [0x10316b68], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.100860d0
push ecx
mov dword [esp], 0x3f800000
lea eax, [esp + 0x5c]
push 0x10252e60
push eax
mov edx, edi
mov ecx, esi
call fcn.100a95e0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8