Function at 0x10046050
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x100f0380]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0xffffffff
mov byte [esp + 0x6c], 0
mov ecx, dword [edi + 0xec]
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x108], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10c], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x110], eax
mov ecx, dword [0x101c6674]
mov eax, dword [0x101650f8]
add ecx, 0xffffffca
xor ecx, 0x9ad088d6
cmp dword [ecx + eax], 8
je 0x100460e5
mov ecx, dword [0x101651e4]
mov eax, dword [ecx + 0x30]
test al, 2
je 0x100460e5
test byte [0x10165100], 1
jne 0x100460e5
cmp byte [0x10164efc], 0
je 0x100460e5
and eax, 0xfffffffd
mov dword [ecx + 0x30], eax
call fcn.100ac130
mov eax, dword [0x101c6638]
push dword [0x10164de4]
add eax, 0xffffffd9
mov dword [esp + 0x18], 0
xor eax, 0x9ad088c7
add eax, dword [0x101650f8]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x100462dd
mov ecx, dword [0x101c6728]
mov eax, dword [0x101650f8]
add ecx, 0xffffff9d
xor ecx, 0x9ad08903
mov eax, dword [ecx + eax]
mov ecx, dword [0x101c6440]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
je 0x100462dd
mov ecx, dword [0x101c64f8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
call dword [esp + 0x10]
mov ecx, dword [0x101c66ec]
mov eax, dword [0x101650f8]
add ecx, 0xffffffac
xor ecx, 0x9ad088f4
cmp dword [0x101651ac], 0
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [ecx + eax]
movss dword [esp + 0x5c], xmm0
jle 0x100462a9
movss xmm2, dword [esp + 0x20]
movss xmm3, dword [esp + 0x1c]
movss xmm4, dword [esp + 0x18]
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x10], xmm4
nop dword [eax]
movaps xmm1, xmm4
movaps xmm0, xmm3
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm0, xmm1
movaps xmm1, xmm2
mulss xmm1, xmm2
addss xmm0, xmm1
call fcn.1001c2a0
movss xmm1, dword [0x100e2b04]
comiss xmm1, xmm0
movss dword [esp + 0x30], xmm0
jae 0x100462a9
mov ecx, dword [0x101c64fc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x2c], eax
call dword [esp + 0x2c]
movss xmm2, dword [esp + 0x30]
mov eax, dword [0x101c649c]
movaps xmm1, xmm2
fstp dword [esp + 0x2c]
movss xmm0, dword [esp + 0x2c]
maxss xmm0, xmm2
movss xmm4, dword [esp + 0x10]
movss xmm3, dword [esp + 0x28]
mulss xmm0, dword [esp + 0x5c]
mulss xmm0, dword [eax + 0x20]
subss xmm1, xmm0
maxss xmm1, dword [0x100e2a98]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x1004628e
divss xmm1, xmm2
movss xmm2, dword [esp + 0x24]
mulss xmm4, xmm1
mulss xmm3, xmm1
mulss xmm2, xmm1
movss dword [esp + 0x10], xmm4
movss dword [esp + 0x28], xmm3
movss dword [esp + 0x24], xmm2
jmp 0x10046294
movss xmm2, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [0x101651ac]
jl 0x100461d0
mov eax, dword [0x101c64b0]
mov ecx, dword [eax + 0x4cb0]
mov eax, 0xf
sub eax, ecx
cmp dword [esp + 0x14], eax
jg 0x100462c5
test ecx, ecx
jne 0x100462dd
mov eax, dword [0x101651e4]
mov dword [eax + 0x28], 0
mov eax, dword [0x101651e4]
mov dword [eax + 0x24], 0
call fcn.100ac9e0
call fcn.100b2220
mov ecx, dword [edi + 0xec]
lea esi, [edi + 0x114]
mov eax, dword [edi + 0xfc]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x100]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x104]
mov dword [ecx + 0x14], eax
movss xmm0, dword [edi + 0xfc]
mulss xmm0, dword [0x100e2ad8]
movss dword [esp + 0x30], xmm0
call fcn.1001c280
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edi + 0x100]
mulss xmm0, dword [0x100e2ad8]
movss dword [esp + 0x5c], xmm0
test esi, esi
je 0x10046385
call fcn.1001c280
mulss xmm0, dword [esp + 0x14]
movss dword [esi], xmm0
movss xmm0, dword [esp + 0x5c]
call fcn.1001c290
mulss xmm0, dword [esp + 0x14]
movss dword [esi + 4], xmm0
movss xmm0, dword [esp + 0x30]
call fcn.1001c290
xorps xmm0, xmmword [0x100e2fe0]
movss dword [esi + 8], xmm0
mov esi, dword [edi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x28c]
call eax
cmp dword [esi + 0x39e1], 0
je 0x10046506
mov eax, dword [0x101c65d4]
mov eax, dword [eax + esi]
mov dword [esp + 0x5c], eax
test eax, eax
je 0x10046506
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x10046506
cmp byte [eax + 0x109], 0
xorps xmm4, xmm4
jne 0x10046430
mov eax, dword [0x101c66a8]
add eax, 0xffffffbd
xor eax, 0x9ad088e3
movss xmm0, dword [eax + ecx]
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jp 0x10046430
mov eax, dword [0x101c6728]
add eax, 0xffffff9d
xor eax, 0x9ad08903
mov eax, dword [eax + ecx]
mov ecx, dword [0x101c6440]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
jne 0x10046506
xorps xmm4, xmm4
mov eax, dword [esp + 0x5c]
mov ecx, dword [0x101c671c]
add ecx, 0xffffffa0
xor ecx, 0x9ad08900
mov eax, dword [eax + 0x60]
mov eax, dword [ecx + eax]
test eax, eax
je 0x10046506
movss xmm3, dword [eax + 0x1ac]
movss xmm2, dword [esp + 0x20]
cvtps2pd xmm3, xmm3
cvtps2pd xmm0, xmm2
addsd xmm3, qword [0x100e2c08]
comisd xmm0, xmm3
movsd qword [esp + 0x30], xmm3
jbe 0x1004650c
subsd xmm0, xmm3
cvtpd2ps xmm0, xmm0
subss xmm0, dword [0x100e2c64]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x100e2be0]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm4
jb 0x100464d0
sub esp, 8
mov dword [esp + 4], 0x3f800000
movss dword [esp], xmm0
call dword [sym.imp.ucrtbased.dll_fminf]
movss xmm2, dword [esp + 0x28]
add esp, 8
movsd xmm3, qword [esp + 0x30]
fstp dword [esp + 0x5c]
movss xmm4, dword [esp + 0x5c]
movaps xmm1, xmm4
mulss xmm1, xmm4
cvtps2pd xmm2, xmm2
movaps xmm0, xmm1
addss xmm1, xmm1
mulss xmm0, dword [0x100e2c40]
subsd xmm3, xmm2
mulss xmm1, xmm4
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm3
addsd xmm0, xmm2
cvtpd2ps xmm2, xmm0
jmp 0x1004650c
movss xmm2, dword [esp + 0x20]
movss xmm0, dword [esp + 0x18]
movss dword [edi + 0xc], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [edi + 0x10], xmm0
movss dword [edi + 0x14], xmm2
mov eax, dword [edi]
mov dword [edi + 0x80], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x84], 0xffffffff
mov dword [edi + 0x8c], 0xffffffff
mov byte [edi + 0x90], 0
mov byte [edi + 0x18], 0
mov ecx, dword [0x101c6724]
add ecx, 0xffffff9e
xor ecx, 0x9ad08902
mov eax, dword [ecx + eax]
mov ecx, dword [0x101c6440]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
mov ecx, eax
mov dword [edi + 0x80], ecx
test ecx, ecx
je 0x100468d0
mov eax, dword [ecx]
mov eax, dword [eax + 0x6f8]
call eax
mov esi, dword [edi + 0x80]
mov dword [edi + 0x88], eax
mov edx, dword [0x101c673c]
add edx, 0xffffff98
xor edx, 0x9ad08908
mov edx, dword [edx + esi]
mov dword [edi + 0x84], edx
mov eax, dword [eax + 0xc8]
mov dword [edi + 0x8c], eax
cmp eax, 9
je 0x100465db
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x75c]
call eax
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x10046674
cmp eax, 7
je 0x10046674
cmp eax, 9
je 0x10046674
mov eax, dword [edi]
lea edx, [esp + 0x60]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x3c]
mov eax, dword [edi + 0x88]
mov dword [esp + 0x40], 0
movss xmm1, dword [eax + 0x104]
movaps xmm0, xmm1
mov dword [esp + 0x50], 0x3f800000
mulss xmm0, dword [edi + 0x114]
mov dword [esp + 0x54], 0x3f800000
mov byte [esp + 0x58], 1
addss xmm0, dword [edi + 0xc]
movss dword [esp + 0x44], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [edi + 0x118]
mulss xmm1, dword [edi + 0x11c]
addss xmm0, dword [edi + 0x10]
addss xmm1, dword [edi + 0x14]
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x4c], xmm1
call fcn.100b06f0
movups xmm0, xmmword [esp + 0x60]
mov ecx, dword [edi]
movups xmmword [edi + 0x120], xmm0
mov edx, dword [0x101c66a4]
mov eax, dword [0x101c649c]
add edx, 0xffffffbe
xor edx, 0x9ad088e2
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [edx + ecx]
jb 0x100466d2
mov ecx, dword [0x101c643c]
mov esi, dword [0x101c64c8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x100466c5
mov eax, dword [esi]
test eax, eax
je 0x100466c5
mov al, byte [eax + 0x20]
test al, al
jne 0x100466d2
test byte [0x10165100], 0x40
jne 0x100466d2
mov cl, 1
jmp 0x100466d4
xor cl, cl
mov esi, dword [edi + 0x94]
mov byte [edi + 0x18], cl
mov byte [edi + 0x9c], 0
cmp esi, 0xffffffff
jne 0x100466f5
mov dword [edi + 0x94], 0
xor esi, esi
cmp dword [edi + 0x84], 0x40
jne 0x100467c8
mov eax, dword [0x101c6740]
mov edx, dword [edi + 0x80]
add eax, 0xffffff97
xor eax, 0x9ad08909
cmp dword [eax + edx], 1
jl 0x100467c8
test cl, cl
je 0x100467c8
mov eax, dword [0x101c6754]
add eax, 0xffffff92
xor eax, 0x9ad0890e
movss xmm0, dword [eax + edx]
mov eax, dword [0x101c649c]
comiss xmm0, dword [eax + 0x10]
ja 0x100467c8
movss xmm0, dword [eax + 0x20]
mulss xmm0, dword [0x100e2e0c]
push ecx
movss dword [esp + 0x60], xmm0
fld dword [esp + 0x60]
fstp dword [esp]
call sub.ucrtbased.dll_roundf
movss xmm0, dword [0x100e2e84]
add esp, 4
fstp dword [esp + 0x5c]
divss xmm0, dword [esp + 0x5c]
cvttss2si eax, xmm0
not eax
mov dword [edi + 0x98], eax
cmp eax, esi
jne 0x100467a0
mov byte [edi + 0x9c], 1
mov dword [edi + 0x94], 0xffffffff
jmp 0x100467dc
mov eax, dword [edi + 0xec]
test byte [eax + 0x30], 1
je 0x100467d2
lea eax, [esi + 1]
mov dword [edi + 0x94], eax
test eax, eax
jle 0x100467dc
mov eax, dword [edi + 0xec]
and dword [eax + 0x30], 0xfffff7ff
jmp 0x100467dc
mov dword [edi + 0x98], 0
mov dword [edi + 0x94], 0
cmp byte [edi + 0x18], 0
jne 0x100467e9
xor al, al
jmp 0x100468ca
mov eax, dword [edi + 0x8c]
cmp eax, 9
jne 0x100467fb
xor al, al
jmp 0x100468ca
test eax, eax
je 0x10046821
mov ecx, dword [0x101c6740]
mov eax, dword [edi + 0x80]
add ecx, 0xffffff97
xor ecx, 0x9ad08909
cmp dword [ecx + eax], 1
jge 0x10046821
xor al, al
jmp 0x100468ca
mov ecx, dword [edi + 0x84]
mov edx, dword [0x101c649c]
cmp ecx, 4
je 0x10046837
cmp ecx, 0xa
jne 0x1004686c
mov eax, dword [0x101c6750]
mov esi, dword [edi + 0x80]
add eax, 0xffffff93
xor eax, 0x9ad0890d
cmp dword [eax + esi], 0
jle 0x1004686c
mov eax, dword [0x101c6760]
movss xmm0, dword [edx + 0x10]
add eax, 0xffffff8f
xor eax, 0x9ad08911
comiss xmm0, dword [eax + esi]
jb 0x1004686c
mov al, 1
jmp 0x100468ca
cmp ecx, 0x40
jne 0x100468ab
mov eax, dword [0x101c6748]
mov ecx, dword [edi + 0x80]
add eax, 0xffffff95
xor eax, 0x9ad0890b
cmp byte [edi + 0x9c], 0
mov eax, dword [eax + ecx]
jne 0x100468ab
cmp eax, 0xb9
je 0x1004689e
cmp eax, 0xc1
jne 0x100468a7
cmp dword [edi + 0x94], 0
je 0x100468b1
xor al, al
jmp 0x100468ca
mov ecx, dword [edi + 0x80]
mov eax, dword [0x101c6754]
movss xmm0, dword [edx + 0x10]
add eax, 0xffffff92
xor eax, 0x9ad0890e
comiss xmm0, dword [eax + ecx]
setae al
mov byte [edi + 0x90], al
cmp byte [0x101cc7f0], 0
jne 0x100468e5
call fcn.1009ecc0
call fcn.10022e70
jmp 0x10046901
mov eax, dword [edi + 0xc0]
cmp dword [0x101cc7f4], 1
sete cl
mov byte [eax], cl
mov eax, dword [edi + 0xec]
and dword [eax + 0x30], 0xfffffffe
mov eax, dword [0x101c68b0]
mov esi, dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::constructor_int_]
mov edi, dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov dword [0x101c68d4], 0
mov dword [0x101c68d8], 0
mov dword [0x101c68dc], 0
mov dword [0x101c68ec], 0
mov dword [0x101c68f0], 0
mov dword [0x101c68f4], 0
mov dword [0x101c68e0], 0
mov dword [0x101c68e4], 0
mov dword [0x101c68e8], 0
mov dword [0x101c68cc], 0
mov dword [0x101c68d0], 0
cmp eax, dword [0x101c68b4]
je 0x100469cd
push 3
lea ecx, [esp + 0x60]
call esi
mov ecx, dword [0x101c68ac]
test ecx, ecx
je 0x100469bd
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x100469bd
nop dword [eax + eax]
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x100469b0
lea ecx, [esp + 0x5c]
call edi
mov eax, dword [0x101c68b0]
mov dword [0x101c68b4], eax
mov eax, dword [0x101c68c0]
cmp eax, dword [0x101c68c4]
je 0x10046a1d
push 3
lea ecx, [esp + 0x60]
call esi
mov ecx, dword [0x101c68bc]
test ecx, ecx
je 0x10046a0d
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x10046a0d
nop word [eax + eax]
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x10046a00
lea ecx, [esp + 0x5c]
call edi
mov eax, dword [0x101c68c0]
mov dword [0x101c68c4], eax
cmp byte [0x10164ee8], 0
je 0x10046a92
cmp byte [0x101650fc], 0
je 0x10046a92
cmp dword [0x10165184], 9
jne 0x10046a92
mov eax, dword [0x101651e4]
test byte [eax + 0x30], 1
jne 0x10046a4d
mov eax, dword [eax + 0x30]
shr eax, 0xb
test al, 1
je 0x10046a92
mov ecx, dword [0x101c675c]
mov eax, dword [0x1016517c]
add ecx, 0xffffff90
mov dword [0x101c68a8], eax
xor ecx, 0x9ad08910
mov eax, dword [0x10165178]
movss xmm0, dword [ecx + eax]
mov eax, dword [0x10165180]
movss dword [0x101c68d0], xmm0
movss xmm0, dword [eax + 0x10c]
movss dword [0x101c68cc], xmm0
call fcn.100986b0
call fcn.1009e850
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.100c8320
mov esp, ebp
pop ebp
ret