Function at 0x10046090
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x100ed380]
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 [0x101c363c]
mov eax, dword [0x10162100]
add ecx, 0xffffffca
xor ecx, 0xd5b8f11
cmp dword [ecx + eax], 8
je 0x10046125
mov ecx, dword [0x101621ec]
mov eax, dword [ecx + 0x30]
test al, 2
je 0x10046125
test byte [0x10162108], 1
jne 0x10046125
cmp byte [0x10161f04], 0
je 0x10046125
and eax, 0xfffffffd
mov dword [ecx + 0x30], eax
call fcn.100abad0
mov eax, dword [0x101c3600]
push dword [0x10161dec]
add eax, 0xffffffd9
mov dword [esp + 0x18], 0
xor eax, 0xd5b8f02
add eax, dword [0x10162100]
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 0x1004631d
mov ecx, dword [0x101c36f0]
mov eax, dword [0x10162100]
add ecx, 0xffffff9d
xor ecx, 0xd5b8f3e
mov eax, dword [ecx + eax]
mov ecx, dword [0x101c3410]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
je 0x1004631d
mov ecx, dword [0x101c34c4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
call dword [esp + 0x10]
mov ecx, dword [0x101c36b4]
mov eax, dword [0x10162100]
add ecx, 0xffffffac
xor ecx, 0xd5b8f2f
cmp dword [0x101621b4], 0
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [ecx + eax]
movss dword [esp + 0x5c], xmm0
jle 0x100462e9
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 [0x100e096c]
comiss xmm1, xmm0
movss dword [esp + 0x30], xmm0
jae 0x100462e9
mov ecx, dword [0x101c34c8]
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 [0x101c346c]
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 [0x100e0900]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x100462ce
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 0x100462d4
movss xmm2, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [0x101621b4]
jl 0x10046210
mov eax, dword [0x101c3480]
mov ecx, dword [eax + 0x4cb0]
mov eax, 0xf
sub eax, ecx
cmp dword [esp + 0x14], eax
jg 0x10046305
test ecx, ecx
jne 0x1004631d
mov eax, dword [0x101621ec]
mov dword [eax + 0x28], 0
mov eax, dword [0x101621ec]
mov dword [eax + 0x24], 0
call fcn.100ac380
call fcn.100b0e60
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 [0x100e0940]
movss dword [esp + 0x30], xmm0
call fcn.1001c280
movss dword [esp + 0x14], xmm0
movss xmm0, dword [edi + 0x100]
mulss xmm0, dword [0x100e0940]
movss dword [esp + 0x5c], xmm0
test esi, esi
je 0x100463c5
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 [0x100e0e50]
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 0x10046546
mov eax, dword [0x101c35a0]
mov eax, dword [eax + esi]
mov dword [esp + 0x5c], eax
test eax, eax
je 0x10046546
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x10046546
cmp byte [eax + 0x109], 0
xorps xmm4, xmm4
jne 0x10046470
mov eax, dword [0x101c3670]
add eax, 0xffffffbd
xor eax, 0xd5b8f1e
movss xmm0, dword [eax + ecx]
ucomiss xmm0, xmm4
lahf
test ah, 0x44
jp 0x10046470
mov eax, dword [0x101c36f0]
add eax, 0xffffff9d
xor eax, 0xd5b8f3e
mov eax, dword [eax + ecx]
mov ecx, dword [0x101c3410]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
mov edx, esp
mov dword [edx], eax
call esi
test eax, eax
jne 0x10046546
xorps xmm4, xmm4
mov eax, dword [esp + 0x5c]
mov ecx, dword [0x101c36e4]
add ecx, 0xffffffa0
xor ecx, 0xd5b8f3b
mov eax, dword [eax + 0x60]
mov eax, dword [ecx + eax]
test eax, eax
je 0x10046546
movss xmm3, dword [eax + 0x1ac]
movss xmm2, dword [esp + 0x20]
cvtps2pd xmm3, xmm3
cvtps2pd xmm0, xmm2
addsd xmm3, qword [0x100e0a70]
comisd xmm0, xmm3
movsd qword [esp + 0x30], xmm3
jbe 0x1004654c
subsd xmm0, xmm3
cvtpd2ps xmm0, xmm0
subss xmm0, dword [0x100e0acc]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x100e0a48]
cvtpd2ps xmm0, xmm0
comiss xmm0, xmm4
jb 0x10046510
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 [0x100e0aa8]
subsd xmm3, xmm2
mulss xmm1, xmm4
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm3
addsd xmm0, xmm2
cvtpd2ps xmm2, xmm0
jmp 0x1004654c
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 [0x101c36ec]
add ecx, 0xffffff9e
xor ecx, 0xd5b8f3d
mov eax, dword [ecx + eax]
mov ecx, dword [0x101c3410]
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 0x10046910
mov eax, dword [ecx]
mov eax, dword [eax + 0x6f8]
call eax
mov esi, dword [edi + 0x80]
mov dword [edi + 0x88], eax
mov edx, dword [0x101c3704]
add edx, 0xffffff98
xor edx, 0xd5b8f43
mov edx, dword [edx + esi]
mov dword [edi + 0x84], edx
mov eax, dword [eax + 0xc8]
mov dword [edi + 0x8c], eax
cmp eax, 9
je 0x1004661b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x75c]
call eax
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x100466b4
cmp eax, 7
je 0x100466b4
cmp eax, 9
je 0x100466b4
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.100b0090
movups xmm0, xmmword [esp + 0x60]
mov ecx, dword [edi]
movups xmmword [edi + 0x120], xmm0
mov edx, dword [0x101c366c]
mov eax, dword [0x101c346c]
add edx, 0xffffffbe
xor edx, 0xd5b8f1d
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [edx + ecx]
jb 0x10046712
mov ecx, dword [0x101c340c]
mov esi, dword [0x101c3498]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x10046705
mov eax, dword [esi]
test eax, eax
je 0x10046705
mov al, byte [eax + 0x20]
test al, al
jne 0x10046712
test byte [0x10162108], 0x40
jne 0x10046712
mov cl, 1
jmp 0x10046714
xor cl, cl
mov esi, dword [edi + 0x94]
mov byte [edi + 0x18], cl
mov byte [edi + 0x9c], 0
cmp esi, 0xffffffff
jne 0x10046735
mov dword [edi + 0x94], 0
xor esi, esi
cmp dword [edi + 0x84], 0x40
jne 0x10046808
mov eax, dword [0x101c3708]
mov edx, dword [edi + 0x80]
add eax, 0xffffff97
xor eax, 0xd5b8f44
cmp dword [eax + edx], 1
jl 0x10046808
test cl, cl
je 0x10046808
mov eax, dword [0x101c371c]
add eax, 0xffffff92
xor eax, 0xd5b8f49
movss xmm0, dword [eax + edx]
mov eax, dword [0x101c346c]
comiss xmm0, dword [eax + 0x10]
ja 0x10046808
movss xmm0, dword [eax + 0x20]
mulss xmm0, dword [0x100e0c74]
push ecx
movss dword [esp + 0x60], xmm0
fld dword [esp + 0x60]
fstp dword [esp]
call sub.ucrtbased.dll_roundf
movss xmm0, dword [0x100e0cec]
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 0x100467e0
mov byte [edi + 0x9c], 1
mov dword [edi + 0x94], 0xffffffff
jmp 0x1004681c
mov eax, dword [edi + 0xec]
test byte [eax + 0x30], 1
je 0x10046812
lea eax, [esi + 1]
mov dword [edi + 0x94], eax
test eax, eax
jle 0x1004681c
mov eax, dword [edi + 0xec]
and dword [eax + 0x30], 0xfffff7ff
jmp 0x1004681c
mov dword [edi + 0x98], 0
mov dword [edi + 0x94], 0
cmp byte [edi + 0x18], 0
jne 0x10046829
xor al, al
jmp 0x1004690a
mov eax, dword [edi + 0x8c]
cmp eax, 9
jne 0x1004683b
xor al, al
jmp 0x1004690a
test eax, eax
je 0x10046861
mov ecx, dword [0x101c3708]
mov eax, dword [edi + 0x80]
add ecx, 0xffffff97
xor ecx, 0xd5b8f44
cmp dword [ecx + eax], 1
jge 0x10046861
xor al, al
jmp 0x1004690a
mov ecx, dword [edi + 0x84]
mov edx, dword [0x101c346c]
cmp ecx, 4
je 0x10046877
cmp ecx, 0xa
jne 0x100468ac
mov eax, dword [0x101c3718]
mov esi, dword [edi + 0x80]
add eax, 0xffffff93
xor eax, 0xd5b8f48
cmp dword [eax + esi], 0
jle 0x100468ac
mov eax, dword [0x101c3728]
movss xmm0, dword [edx + 0x10]
add eax, 0xffffff8f
xor eax, 0xd5b8f4c
comiss xmm0, dword [eax + esi]
jb 0x100468ac
mov al, 1
jmp 0x1004690a
cmp ecx, 0x40
jne 0x100468eb
mov eax, dword [0x101c3710]
mov ecx, dword [edi + 0x80]
add eax, 0xffffff95
xor eax, 0xd5b8f46
cmp byte [edi + 0x9c], 0
mov eax, dword [eax + ecx]
jne 0x100468eb
cmp eax, 0xb9
je 0x100468de
cmp eax, 0xc1
jne 0x100468e7
cmp dword [edi + 0x94], 0
je 0x100468f1
xor al, al
jmp 0x1004690a
mov ecx, dword [edi + 0x80]
mov eax, dword [0x101c371c]
movss xmm0, dword [edx + 0x10]
add eax, 0xffffff92
xor eax, 0xd5b8f49
comiss xmm0, dword [eax + ecx]
setae al
mov byte [edi + 0x90], al
cmp byte [0x101c97bc], 0
jne 0x10046925
call fcn.1009e600
call fcn.10022e70
jmp 0x10046941
mov eax, dword [edi + 0xc0]
cmp dword [0x101c97b8], 1
sete cl
mov byte [eax], cl
mov eax, dword [edi + 0xec]
and dword [eax + 0x30], 0xfffffffe
mov eax, dword [0x101c3878]
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 [0x101c389c], 0
mov dword [0x101c38a0], 0
mov dword [0x101c38a4], 0
mov dword [0x101c38b4], 0
mov dword [0x101c38b8], 0
mov dword [0x101c38bc], 0
mov dword [0x101c38a8], 0
mov dword [0x101c38ac], 0
mov dword [0x101c38b0], 0
mov dword [0x101c3894], 0
mov dword [0x101c3898], 0
cmp eax, dword [0x101c387c]
je 0x10046a0d
push 3
lea ecx, [esp + 0x60]
call esi
mov ecx, dword [0x101c3874]
test ecx, ecx
je 0x100469fd
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x100469fd
nop dword [eax + eax]
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x100469f0
lea ecx, [esp + 0x5c]
call edi
mov eax, dword [0x101c3878]
mov dword [0x101c387c], eax
mov eax, dword [0x101c3888]
cmp eax, dword [0x101c388c]
je 0x10046a5d
push 3
lea ecx, [esp + 0x60]
call esi
mov ecx, dword [0x101c3884]
test ecx, ecx
je 0x10046a4d
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x10046a4d
nop word [eax + eax]
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x10046a40
lea ecx, [esp + 0x5c]
call edi
mov eax, dword [0x101c3888]
mov dword [0x101c388c], eax
cmp byte [0x10161ef0], 0
je 0x10046ad2
cmp byte [0x10162104], 0
je 0x10046ad2
cmp dword [0x1016218c], 9
jne 0x10046ad2
mov eax, dword [0x101621ec]
test byte [eax + 0x30], 1
jne 0x10046a8d
mov eax, dword [eax + 0x30]
shr eax, 0xb
test al, 1
je 0x10046ad2
mov ecx, dword [0x101c3724]
mov eax, dword [0x10162184]
add ecx, 0xffffff90
mov dword [0x101c3870], eax
xor ecx, 0xd5b8f4b
mov eax, dword [0x10162180]
movss xmm0, dword [ecx + eax]
mov eax, dword [0x10162188]
movss dword [0x101c3898], xmm0
movss xmm0, dword [eax + 0x10c]
movss dword [0x101c3894], xmm0
call fcn.10098110
call fcn.1009e190
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.100c6d50
mov esp, ebp
pop ebp
ret