Function at 0x10051f80
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0x861110
push 0xc
call eax
mov edx, 0x85ec20
mov ecx, eax
call edx
test al, al
jne 0x10051fb4
movzx eax, byte [0x101f09d5]
xor ecx, ecx
cmp byte [0x101f3b15], 1
cmove eax, ecx
mov byte [0x101f09d5], al
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x101f3a90]
xor edx, edx
movzx ecx, byte [0x101f3b15]
cmp eax, 0x64
cmovb ecx, edx
mov byte [0x101f3b15], cl
call edi
sub eax, dword [0x101f3ad0]
cmp eax, 0x64
jae 0x10051ff1
mov byte [0x101f3b15], 0
pop edi
mov esp, ebp
pop ebp
ret
cmp byte [0x101f3b15], 0
je 0x1005238c
cmp dword [0x10326958], 0
je 0x1005238c
xor eax, eax
cmp dword [0x10320a48], eax
je 0x1005203c
movd xmm0, dword [0xe61e58]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0xe7c3d8]
mulss xmm0, dword [0x10197738]
subss xmm0, dword [0x101985e8]
cvttss2si eax, xmm0
movss xmm3, dword [0x1019852c]
movss xmm2, dword [0x1019833c]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
push ebx
push esi
sub esp, 0xc
addss xmm1, dword [0x101981fc]
mov dword [esp + 4], 0
mov dword [esp], 0x43020000
movss dword [ebp - 4], xmm1
call fcn.10036730
cvttss2si ebx, dword [ebp - 4]
push str.Muun_System
push 3
push 0xd2
push 0x64
lea esi, [ebx + 0xa]
push esi
push 0xff2d5fe1
push 0x101efdd8
call fcn.100797d0
cmp dword [0x10326958], 1
mov ecx, str.Do_you_want_to_drop_this_item_
mov eax, str.Do_you_want_to_sell_this_item_
cmovne eax, ecx
push eax
push 3
push 0xd2
push 0x82
push esi
push 0xff19bdff
push 0x101efdd8
call fcn.100797d0
movss xmm3, dword [0x1019845c]
lea esi, [ebx + 0x28]
add esp, 0x30
movd xmm0, esi
cvtdq2ps xmm2, xmm0
mov ecx, 0x101efdd8
mov dword [esp + 4], 0
mov dword [esp], 0
push 0xf0
call fcn.1007a4a0
movd xmm1, dword [0x10329980]
mov ecx, 0x3c
movss xmm0, dword [0x101f3a80]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x10052270
comiss xmm1, dword [0x101f3a88]
ja 0x10052270
movd xmm1, dword [0x10329988]
movss xmm0, dword [0x101f3a84]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x10052270
comiss xmm1, dword [0x101f3a8c]
ja 0x10052270
cmp byte [0x101f3a94], 0
mov eax, 0x1e
movss xmm3, dword [0x1019845c]
cmovne eax, ecx
movd xmm2, esi
sub esp, 8
mov ecx, 0x101efdd8
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
mov dword [esp], 0
push 0xf0
call fcn.1007a4a0
push 1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x10052270
mov eax, dword [0x10326958]
cmp eax, 1
jne 0x100521e1
mov al, byte [0x101a5bbc]
lea ecx, [ebp - 0xc]
mov edx, 5
mov dword [ebp - 0xc], 0x94e05c1
mov byte [ebp - 8], al
call fcn.100c57d0
mov eax, dword [0x10326958]
cmp eax, 2
jne 0x1005223a
mov al, byte [0x101a5bbc]
lea ecx, [ebp - 0xc]
mov byte [ebp - 6], al
mov edx, 7
cvttss2si eax, dword [0x101a5bb8]
mov dword [ebp - 0xc], 0x14e07c1
mov byte [ebp - 8], al
cvttss2si eax, dword [0x101a5bb4]
mov byte [ebp - 7], al
call fcn.100c57d0
mov eax, 0x7dd1b0
call eax
mov dword [0x81c03b4], 0
mov eax, 0x83c080
mov dword [0xe616d0], 6
call eax
mov dword [0x10326958], 0
call edi
mov dword [0x101f3a90], eax
mov byte [0x101f3b15], 0
mov dword [0x101a5bbc], 0xffffffff
mov dword [0x101a5bb8], 0xbf800000
mov dword [0x101a5bb4], 0xbf800000
cvttss2si esi, dword [ebp - 4]
sub esp, 8
mov ecx, 0x101efdd8
mov dword [esp + 4], 0
mov dword [esp], 0
push 0xf1
movss xmm3, dword [0x1019845c]
add esi, 0x8c
movd xmm0, esi
cvtdq2ps xmm2, xmm0
call fcn.1007a4a0
movd xmm1, dword [0x10329980]
movss xmm0, dword [0x101f3ac0]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x1005238a
comiss xmm1, dword [0x101f3ac8]
ja 0x1005238a
movd xmm1, dword [0x10329988]
movss xmm0, dword [0x101f3ac4]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x1005238a
comiss xmm1, dword [0x101f3acc]
ja 0x1005238a
cmp byte [0x101f3ad4], 0
mov ecx, 0x3c
movss xmm3, dword [0x1019845c]
mov eax, 0x1e
cmovne eax, ecx
movd xmm2, esi
sub esp, 8
mov ecx, 0x101efdd8
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
mov dword [esp], 0
push 0xf1
call fcn.1007a4a0
push 1
call ebx
mov ecx, 0x8000
test cx, ax
je 0x1005238a
mov dword [0x10326958], 0
call edi
mov dword [0x101f3ad0], eax
mov byte [0x101f3b15], 0
mov dword [0x101a5bbc], 0xffffffff
mov dword [0x101a5bb8], 0xbf800000
mov dword [0x101a5bb4], 0xbf800000
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret