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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0x861110
push 0xc
call eax
mov edx, 0x85ec20
mov ecx, eax
call edx
test al, al
jne 0x10052a7a
cmp byte [0x101970d5], 1
jne 0x10052a7a
mov byte [0x101947d5], al
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x10197050]
cmp eax, 0x64
jae 0x10052a95
mov byte [0x101970d5], 0
call edi
sub eax, dword [0x10197090]
cmp eax, 0x64
jae 0x10052aae
mov byte [0x101970d5], 0
pop edi
mov esp, ebp
pop ebp
ret
cmp byte [0x101970d5], 0
je 0x10052f41
cmp dword [0x102c9358], 0
je 0x10052f41
xor eax, eax
cmp dword [0x102c32f0], eax
je 0x10052af9
movd xmm0, dword [0xe61e58]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0xe7c3d8]
mulss xmm0, dword [0x101430a0]
subss xmm0, dword [0x10143f9c]
cvttss2si eax, xmm0
movss xmm3, dword [0x10143ee0]
movss xmm2, dword [0x10143d08]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
push ebx
push esi
sub esp, 0xc
addss xmm1, dword [0x10143bdc]
mov dword [esp + 4], 0
mov dword [esp], 0x43020000
movss dword [ebp - 8], xmm1
call fcn.10034cc0
cvttss2si ebx, dword [ebp - 8]
push str.Muun_System
push 3
push 0xd2
push 0x64
lea esi, [ebx + 0xa]
push esi
push 0xff2d5fe1
push 0x10193bd8
call fcn.1007dc40
cmp dword [0x102c9358], 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 0x10193bd8
call fcn.1007dc40
movss xmm0, dword [0x10197040]
lea esi, [ebx + 0x28]
movss xmm2, dword [0x10144184]
add esp, 0x38
movss xmm3, dword [0x1019703c]
movss xmm4, dword [0x10197038]
ucomiss xmm0, xmm2
movd xmm1, esi
cvtdq2ps xmm1, xmm1
lahf
test ah, 0x44
jnp 0x10052bd4
movss xmm0, dword [0x10197044]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x10052c08
movaps xmm0, xmm1
movss dword [0x10197040], xmm1
addss xmm0, xmm4
mov dword [0x10197044], 0x43200000
movss dword [0x10197048], xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x10143e18]
movss dword [0x1019704c], xmm0
sub esp, 0x18
mov eax, 0x790e40
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
movss dword [esp + 0xc], xmm3
movss dword [esp + 8], xmm4
mov dword [esp + 4], 0x43200000
movss dword [esp], xmm1
push dword [0x10197034]
call eax
movd xmm1, dword [0x102cc378]
add esp, 0x1c
movss xmm0, dword [0x10197040]
mov ecx, 0x3c
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x10052daa
comiss xmm1, dword [0x10197048]
ja 0x10052daa
movd xmm1, dword [0x102cc380]
movss xmm0, dword [0x10197044]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x10052daa
comiss xmm1, dword [0x1019704c]
ja 0x10052daa
cmp byte [0x10197054], 0
mov eax, 0x1e
movss xmm3, dword [0x10143e18]
cmovne eax, ecx
movd xmm2, esi
sub esp, 8
mov ecx, 0x10193bd8
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
mov dword [esp], 0
push 0xcf
call fcn.1007e7e0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10052daa
mov eax, dword [0x102c9358]
cmp eax, 1
jne 0x10052d1b
mov al, byte [0x1014c274]
lea ecx, [ebp - 8]
mov edx, 5
mov dword [ebp - 8], 0x94e05c1
mov byte [ebp - 4], al
call fcn.100d0350
mov eax, dword [0x102c9358]
cmp eax, 2
jne 0x10052d74
mov al, byte [0x1014c274]
lea ecx, [ebp - 8]
mov byte [ebp - 2], al
mov edx, 7
cvttss2si eax, dword [0x1014c270]
mov dword [ebp - 8], 0x14e07c1
mov byte [ebp - 4], al
cvttss2si eax, dword [0x1014c26c]
mov byte [ebp - 3], al
call fcn.100d0350
mov eax, 0x7dd1b0
call eax
mov dword [0x81c03b4], 0
mov eax, 0x83c080
mov dword [0xe616d0], 6
call eax
mov dword [0x102c9358], 0
call edi
mov dword [0x10197050], eax
mov byte [0x101970d5], 0
mov dword [0x1014c274], 0xffffffff
mov dword [0x1014c270], 0xbf800000
mov dword [0x1014c26c], 0xbf800000
movss xmm0, dword [0x10197080]
lea esi, [ebx + 0x8c]
movss xmm2, dword [0x10144184]
movss xmm3, dword [0x1019707c]
movss xmm4, dword [0x10197078]
ucomiss xmm0, xmm2
movd xmm1, esi
cvtdq2ps xmm1, xmm1
lahf
test ah, 0x44
jnp 0x10052df1
movss xmm0, dword [0x10197084]
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x10052e25
movaps xmm0, xmm1
movss dword [0x10197080], xmm1
addss xmm0, xmm4
mov dword [0x10197084], 0x43200000
movss dword [0x10197088], xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x10143e18]
movss dword [0x1019708c], xmm0
sub esp, 0x18
mov eax, 0x790e40
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
movss dword [esp + 0xc], xmm3
movss dword [esp + 8], xmm4
mov dword [esp + 4], 0x43200000
movss dword [esp], xmm1
push dword [0x10197074]
call eax
movd xmm1, dword [0x102cc378]
add esp, 0x1c
movss xmm0, dword [0x10197080]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x10052f3f
comiss xmm1, dword [0x10197088]
ja 0x10052f3f
movd xmm1, dword [0x102cc380]
movss xmm0, dword [0x10197084]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x10052f3f
comiss xmm1, dword [0x1019708c]
ja 0x10052f3f
cmp byte [0x10197094], 0
mov ecx, 0x3c
movss xmm3, dword [0x10143e18]
mov eax, 0x1e
cmovne eax, ecx
movd xmm2, esi
sub esp, 8
mov ecx, 0x10193bd8
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
mov dword [esp], 0
push 0xd0
call fcn.1007e7e0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10052f3f
mov dword [0x102c9358], 0
call edi
mov dword [0x10197090], eax
mov byte [0x101970d5], 0
mov dword [0x1014c274], 0xffffffff
mov dword [0x1014c270], 0xbf800000
mov dword [0x1014c26c], 0xbf800000
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret