Function at 0x101654d0
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 [0x1024f340]
push esi
push edi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1031ab18]
mov dword [esp + 0x14], esi
cmp eax, dword [esi + 4]
jle 0x1016553f
push 0x1031ab18
call fcn.101928b8
add esp, 4
cmp dword [0x1031ab18], 0xffffffff
jne 0x1016553f
push 0x1031ab18
mov dword [0x1031aa48], 0
mov dword [0x1031aa44], 0
mov dword [0x1031aa40], 0
call fcn.10192867
add esp, 4
mov eax, dword [0x1031aaf0]
cmp eax, dword [esi + 4]
jle 0x1016558d
push 0x1031aaf0
call fcn.101928b8
add esp, 4
cmp dword [0x1031aaf0], 0xffffffff
jne 0x1016558d
push 0x1031aaf0
mov dword [0x1031ab24], 0
mov dword [0x1031ab20], 0
mov dword [0x1031ab1c], 0
call fcn.10192867
add esp, 4
mov eax, dword [0x1031aa2c]
cmp eax, dword [esi + 4]
jle 0x101655d1
push 0x1031aa2c
call fcn.101928b8
add esp, 4
cmp dword [0x1031aa2c], 0xffffffff
jne 0x101655d1
push 0x1031aa2c
mov dword [0x1031aa6c], 0
mov dword [0x1031aa68], 0x103175d4
call fcn.10192867
add esp, 4
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.10071cb0
test al, al
jne 0x101655f8
cmp dword [0x103175d4], 0
je 0x101655f8
mov eax, dword [0x1031aa68]
mov eax, dword [eax]
test eax, eax
jne 0x10165633
mov dword [0x1031aa6c], eax
mov byte [0x10310bb8], 0
mov byte [0x10310b5c], 0
mov dword [0x1024ce30], 0
mov dword [0x1024ce34], 0
mov dword [0x1024ce38], 0
mov byte [0x10310b68], 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 [0x1031aa6c], eax
je 0x101655f8
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x24]
call eax
cmp byte [0x10310b5c], 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 0x101656c2
mov ecx, edi
call fcn.10071fe0
test al, al
je 0x1016579d
movss xmm0, dword [esp + 0x40]
movss dword [0x1024ce30], xmm0
movss xmm0, dword [esp + 0x44]
movss dword [0x1024ce34], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [0x1024ce38], xmm0
mov byte [0x10310b5c], 1
jmp 0x1016579d
mov ecx, dword [esp + 0x14]
mov eax, dword [0x1031aaac]
cmp eax, dword [ecx + 4]
jle 0x1016571a
push 0x1031aaac
call fcn.101928b8
add esp, 4
cmp dword [0x1031aaac], 0xffffffff
jne 0x1016571a
xorps xmm0, xmm0
lea ecx, [esp + 0x20]
movlpd qword [0x1031aae8], xmm0
call fcn.100865c0
push 0x1031aaac
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x1031aae8], ecx
mov dword [0x1031aaec], eax
call fcn.10192867
add esp, 4
lea ecx, [esp + 0x20]
call fcn.100865c0
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x1031aae8]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x1031aaec]
mov dword [esp + 0x24], eax
js 0x1016574b
jg 0x10165747
cmp ecx, 0x29b92700
jb 0x1016574b
mov al, 1
jmp 0x1016574d
xor al, al
test al, al
je 0x1016579d
lea ecx, [esp + 0x128]
call fcn.100865c0
mov edx, 0x1024ce30
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 [0x1031aaec], eax
lea eax, [esp + 0x34]
push ecx
mov dword [0x1031aae8], ecx
mov ecx, 0x10232944
push eax
call fcn.101437d0
add esp, 8
cmp byte [0x10317708], 0
jne 0x10165d3d
cmp byte [0x10310bb8], 0
jne 0x10165c83
mov ecx, edi
call fcn.10071fe0
test al, al
je 0x10165c69
mov ecx, dword [0x1024f68c]
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 xmm1, dword [0x10237790]
lea eax, [esp + 0x20]
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
movss dword [esp + 0x30], xmm0
lea eax, [esp + 0x6c]
movss xmm0, dword [esp + 0x4c]
xorps xmm2, xmm2
mulss xmm0, xmm1
mov dword [esp + 0x18], eax
movss dword [esp + 0x2c], xmm2
movss dword [esp + 0x28], xmm2
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 xmm7, dword [esp + 0x68]
movss xmm3, dword [esp + 0x64]
movaps xmm2, xmm7
movss xmm1, dword [esp + 0x70]
mulss xmm3, dword [0x10237b78]
movaps xmm5, xmm1
push 0x41
mulss xmm2, dword [esp + 0x70]
movss xmm6, dword [esp + 0x78]
xorps xmm5, xmmword [0x10237f00]
movaps xmm0, xmm6
mulss xmm7, dword [0x10237b78]
mulss xmm5, xmm3
mulss xmm7, dword [esp + 0x24]
mulss xmm0, xmm2
mulss xmm6, xmm3
mulss xmm1, xmm2
subss xmm5, xmm0
movss dword [esp + 0x18], xmm7
subss xmm6, xmm1
movss dword [esp + 0x1c], xmm5
movss dword [esp + 0x20], xmm6
call esi
test ax, ax
js 0x1016593c
push 0x57
call esi
test ax, ax
js 0x1016593c
push 0x44
call esi
test ax, ax
js 0x1016593c
push 0x53
call esi
test ax, ax
jns 0x10165c69
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 0x10165a60
push 0x57
call esi
test ax, ax
js 0x10165a60
push 0x44
call esi
test ax, ax
js 0x101659f9
push 0x53
call esi
test ax, ax
jns 0x10165ad1
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.1007f640
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx + 0x24]
mov ecx, edi
call edx
movss xmm1, dword [0x10317370]
movaps xmm2, xmm1
mulss xmm2, dword [esp + 0x18]
movss xmm0, dword [eax]
addss xmm0, dword [esi]
addss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x1c]
mulss xmm1, dword [esp + 0x14]
movss dword [esp + 0x28], xmm2
movss xmm2, dword [esi + 4]
addss xmm2, dword [eax + 4]
addss xmm2, xmm0
movss xmm0, dword [esi + 8]
addss xmm0, dword [eax + 8]
addss xmm0, xmm1
jmp 0x10165ac5
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.1007f640
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx + 0x24]
mov ecx, edi
call edx
movss xmm1, dword [0x10317370]
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x18]
movss xmm2, dword [eax]
addss xmm2, dword [esi]
subss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x1c]
mulss xmm1, dword [esp + 0x14]
movss dword [esp + 0x28], xmm2
movss xmm2, dword [esi + 4]
addss xmm2, dword [eax + 4]
subss xmm2, xmm0
movss xmm0, dword [esi + 8]
addss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x2c], xmm2
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.1007f640
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx + 0x24]
mov ecx, edi
call edx
movss xmm4, dword [esi + 4]
movss xmm5, dword [esi + 8]
movss xmm0, dword [esp + 0x28]
movss xmm3, dword [eax]
addss xmm4, dword [eax + 4]
addss xmm3, dword [esi]
addss xmm5, dword [eax + 8]
movss xmm2, dword [esp + 0x2c]
movss xmm1, dword [esp + 0x30]
subss xmm2, xmm4
mov byte [esp + 0x111], 1
subss xmm0, xmm3
subss xmm1, xmm5
movss dword [esp + 0xe4], xmm2
movss dword [esp + 0xe0], xmm0
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 0x10165b6d
mov byte [esp + 0x111], 0
mov ecx, dword [0x1024f7b0]
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 xmm0, dword [esp + 0x78]
mov al, 1
movss xmm4, dword [esp + 0x84]
movss xmm2, dword [esp + 0x7c]
subss xmm4, xmm0
movss xmm3, dword [esp + 0x80]
movss xmm1, dword [esp + 0x88]
movss dword [0x1031aa40], xmm0
subss xmm1, xmm2
movss xmm0, dword [esp + 0x8c]
subss xmm0, xmm3
movss dword [0x1031aa44], xmm2
movss dword [0x1031aa48], xmm3
movss dword [0x1031ab1c], xmm4
movss dword [0x1031ab20], xmm1
mov byte [0x10310bb8], al
movss dword [0x1031ab24], xmm0
jmp 0x10165c6e
mov al, byte [0x10310bb8]
cmp byte [0x10317708], 0
jne 0x10165d3d
test al, al
je 0x10165d3d
movss xmm2, dword [0x10237a28]
mov esi, 0xa
movd xmm1, esi
lea edx, [esp + 0x34]
cvtdq2ps xmm1, xmm1
mov ecx, edi
movss xmm0, dword [0x1031ab1c]
divss xmm1, xmm2
mulss xmm0, xmm1
addss xmm0, dword [0x1031aa40]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [0x1031ab20]
mulss xmm0, xmm1
addss xmm0, dword [0x1031aa44]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [0x1031ab24]
mulss xmm0, xmm1
addss xmm0, dword [0x1031aa48]
movss dword [esp + 0x3c], xmm0
call fcn.101653a0
test al, al
jne 0x10165d63
mov ecx, dword [0x1031095c]
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 0x1024ce30
call dword [eax + 0x48]
movss xmm2, dword [0x10237a28]
add esi, 0xa
cmp esi, 0x64
jl 0x10165c90
mov byte [0x10310b68], 1
mov esi, dword [ebp + 8]
mov eax, dword [0x10310ba8]
test byte [eax + 0x24], 1
jne 0x10165dbb
cmp byte [0x10310760], 0
jne 0x10165dbb
cmp byte [0x10310b68], 0
je 0x1016562b
jmp 0x10165dc2
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.1007f6f0
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.100a2b20
mov ecx, dword [0x1031095c]
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 0x1024ce30
call dword [eax + 0x48]
jmp 0x10165d40
mov byte [0x10310b68], 1
movss xmm1, dword [esp + 0x40]
movss xmm0, dword [esp + 0x44]
subss xmm0, dword [0x1024ce34]
subss xmm1, dword [0x1024ce30]
movss xmm2, dword [esp + 0x48]
subss xmm2, dword [0x1024ce38]
mulss xmm0, xmm0
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm0, xmm1
addss xmm0, xmm2
call fcn.1006f270
movss xmm1, dword [0x1023798c]
comiss xmm1, xmm0
jbe 0x10165e4f
cmp byte [0x1031746c], 0
je 0x10165624
cmp byte [0x10310750], 0
jne 0x10165624
cmp dword [0x10310764], 0
jne 0x10165624
mov byte [0x10310908], 1
mov byte [0x10310b68], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.1007f6f0
push ecx
mov dword [esp], 0x3f800000
lea eax, [esp + 0x5c]
push 0x1024ce30
push eax
mov edx, edi
mov ecx, esi
call fcn.100a2b20
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8