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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x28], ecx
push 0xc
mov ecx, 0x104e2ce0
call fcn.100b6e90
movzx eax, al
test eax, eax
jne 0x1007cae2
mov ecx, 0x40
imul edx, ecx, 0xf2
movzx eax, byte [edx + 0x104e2d9d]
cmp eax, 1
jne 0x1007cae2
mov ecx, 0x40
imul edx, ecx, 0x2d
mov byte [edx + 0x104e2d9d], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40
imul edx, ecx, 0xf0
sub eax, dword [edx + 0x104e2d98]
cmp eax, 0x64
jae 0x1007cb10
mov eax, 0x40
imul ecx, eax, 0xf2
mov byte [ecx + 0x104e2d9d], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 0x40
imul ecx, edx, 0xf1
sub eax, dword [ecx + 0x104e2d98]
cmp eax, 0x64
jae 0x1007cb3e
mov edx, 0x40
imul eax, edx, 0xf2
mov byte [eax + 0x104e2d9d], 0
mov ecx, 0x40
imul edx, ecx, 0xf2
movzx eax, byte [edx + 0x104e2d9d]
test eax, eax
je 0x1007cb5d
cmp dword [0x10214fd8], 0
jne 0x1007cb62
jmp 0x1007cfd0
mov dword [ebp - 0xc], 0
cmp dword [0x1020f0cc], 0
je 0x1007cb99
cvtsi2ss xmm0, dword [0xe61e58]
divss xmm0, dword [0xe7c3d8]
divss xmm0, dword [0x101fa9e8]
subss xmm0, dword [0x101fb5f4]
cvttss2si ecx, xmm0
mov dword [ebp - 0xc], ecx
cvtsi2ss xmm0, dword [ebp - 0xc]
addss xmm0, dword [0x101fb168]
movss dword [ebp - 4], xmm0
movss xmm0, dword [0x101fb504]
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [0x101fb398]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [0x101fb2d0]
movss dword [ebp - 8], xmm0
movss xmm0, dword [0x101fb2d0]
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [ebp - 0x10]
divss xmm0, dword [0x101fabb0]
addss xmm0, dword [ebp - 4]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [ebp - 0x1c]
subss xmm0, dword [0x101fb11c]
movss dword [ebp - 0x2c], xmm0
push 0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
movss xmm0, dword [ebp - 0x20]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [ebp - 0x10]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [ebp - 0x24]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [ebp - 4]
movss dword [esp], xmm0
mov ecx, 0x1024f4c8
call fcn.10052ec0
push str.Muun_System
push 3
push 0xd2
cvttss2si edx, dword [ebp - 8]
add edx, 0xa
push edx
cvttss2si eax, dword [ebp - 4]
add eax, 0xa
push eax
push 0xff2d5fe1
push 0x104e2ce0
call fcn.100b6d90
add esp, 0x1c
cmp dword [0x10214fd8], 1
jne 0x1007ccb4
push str.Do_you_want_to_sell_this_item_
push 3
push 0xd2
cvttss2si ecx, dword [ebp - 8]
add ecx, 0x28
push ecx
cvttss2si edx, dword [ebp - 4]
add edx, 0xa
push edx
push 0xff19bdff
push 0x104e2ce0
call fcn.100b6d90
add esp, 0x1c
jmp 0x1007cce4
push str.Do_you_want_to_drop_this_item_
push 3
push 0xd2
cvttss2si eax, dword [ebp - 8]
add eax, 0x28
push eax
cvttss2si ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0xff19bdff
push 0x104e2ce0
call fcn.100b6d90
add esp, 0x1c
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
cvttss2si edx, dword [ebp - 8]
add edx, 0x46
cvtsi2ss xmm0, edx
push ecx
movss dword [esp], xmm0
cvttss2si eax, dword [ebp - 4]
add eax, 0x28
cvtsi2ss xmm0, eax
push ecx
movss dword [esp], xmm0
push 0xf0
mov ecx, 0x104e2ce0
call fcn.100b7ea0
push 0xf0
mov ecx, 0x104e2ce0
call fcn.100b6f20
movzx ecx, al
test ecx, ecx
je 0x1007ce92
mov dword [ebp - 0x14], 0x1e
mov edx, 0x40
imul eax, edx, 0xf0
movzx ecx, byte [eax + 0x104e2d9c]
test ecx, ecx
je 0x1007cd67
mov dword [ebp - 0x14], 0x3c
cvtsi2ss xmm0, dword [ebp - 0x14]
push ecx
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
cvttss2si edx, dword [ebp - 8]
add edx, 0x46
cvtsi2ss xmm0, edx
push ecx
movss dword [esp], xmm0
cvttss2si eax, dword [ebp - 4]
add eax, 0x28
cvtsi2ss xmm0, eax
push ecx
movss dword [esp], xmm0
push 0xf0
mov ecx, 0x104e2ce0
call fcn.100b7ea0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x1007ce92
cmp dword [0x10214fd8], 1
jne 0x1007cde0
movzx edx, byte [0x1020bbc0]
push edx
mov ecx, 0x10295ed0
call fcn.1007c990
cmp dword [0x10214fd8], 2
jne 0x1007ce35
cvttss2si eax, dword [0x1020bbb8]
movzx ecx, al
push ecx
cvttss2si edx, dword [0x1020bbbc]
movzx eax, dl
push eax
movzx ecx, byte [0x1020bbc0]
push ecx
mov ecx, 0x10295ed0
call fcn.1007c9e0
mov edx, 0x7dd1b0
call edx
mov dword [0x81c03b4], 0
mov dword [0xe616d0], 6
mov eax, 0x83c080
call eax
mov dword [0x10214fd8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40
imul edx, ecx, 0xf0
mov dword [edx + 0x104e2d98], eax
mov eax, 0x40
imul ecx, eax, 0xf2
mov byte [ecx + 0x104e2d9d], 0
mov dword [0x1020bbc0], 0xffffffff
movss xmm0, dword [0x101fb928]
movss dword [0x1020bbbc], xmm0
movss xmm0, dword [0x101fb928]
movss dword [0x1020bbb8], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
cvttss2si edx, dword [ebp - 8]
add edx, 0x46
cvtsi2ss xmm0, edx
push ecx
movss dword [esp], xmm0
cvttss2si eax, dword [ebp - 4]
add eax, 0x8c
cvtsi2ss xmm0, eax
push ecx
movss dword [esp], xmm0
push 0xf1
mov ecx, 0x104e2ce0
call fcn.100b7ea0
push 0xf1
mov ecx, 0x104e2ce0
call fcn.100b6f20
movzx ecx, al
test ecx, ecx
je 0x1007cfd0
mov dword [ebp - 0x18], 0x1e
mov edx, 0x40
imul eax, edx, 0xf1
movzx ecx, byte [eax + 0x104e2d9c]
test ecx, ecx
je 0x1007cf17
mov dword [ebp - 0x18], 0x3c
cvtsi2ss xmm0, dword [ebp - 0x18]
push ecx
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
cvttss2si edx, dword [ebp - 8]
add edx, 0x46
cvtsi2ss xmm0, edx
push ecx
movss dword [esp], xmm0
cvttss2si eax, dword [ebp - 4]
add eax, 0x8c
cvtsi2ss xmm0, eax
push ecx
movss dword [esp], xmm0
push 0xf1
mov ecx, 0x104e2ce0
call fcn.100b7ea0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x1007cfd0
mov dword [0x10214fd8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 0x40
imul ecx, edx, 0xf1
mov dword [ecx + 0x104e2d98], eax
mov edx, 0x40
imul eax, edx, 0xf2
mov byte [eax + 0x104e2d9d], 0
mov dword [0x1020bbc0], 0xffffffff
movss xmm0, dword [0x101fb928]
movss dword [0x1020bbbc], xmm0
movss xmm0, dword [0x101fb928]
movss dword [0x1020bbb8], xmm0
mov esp, ebp
pop ebp
ret