Function at 0x1000cbb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100682f1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1007d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1014b65c]
mov edi, dword [0x1014b69c]
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x1000cf35
call fcn.10003280
test al, al
je 0x1000cf35
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x1000cf35
call fcn.10004600
test al, al
jne 0x1000cf35
mov eax, dword [0x1014b65c]
mov ecx, dword [0x1014a028]
mov esi, dword [eax + 0x78]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1014a0b8]
cmp eax, dword [ecx + 4]
jle 0x1000cc81
push 0x1014a0b8
call fcn.10065d80
add esp, 4
cmp dword [0x1014a0b8], 0xffffffff
jne 0x1000cc81
push str.m_iItemDefinitionIndex
push str.CEconEntity
mov dword [ebp - 4], 0
call fcn.10061920
push 0x1014a0b8
mov dword [0x1014a048], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10065d2f
add esp, 4
mov eax, dword [0x1014a048]
cmp dword [eax + esi], 0x49c
je 0x1000cf35
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x3c
je 0x1000cf35
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x5f4]
call eax
cmp eax, 0x47
je 0x1000cf35
mov ecx, edi
call fcn.1000cf60
mov eax, dword [0x1014b680]
cmp byte [eax + 0x228], 0
je 0x1000cf35
movzx eax, word [eax + 0x246]
test ax, ax
je 0x1000cd19
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1000cd19
cmp dword [0x1014a168], 0
jne 0x1000cd9f
push 0x1006e88c
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x1014a168], eax
mov ecx, dword [0x1014b65c]
mov ecx, dword [ecx + 0x74]
call fcn.1000c6d0
test al, al
jne 0x1000cf35
mov eax, dword [0x1014b65c]
xor esi, esi
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov eax, dword [eax + 0x54]
movss xmm0, dword [ecx + 0xa54]
mov edi, dword [eax]
mov eax, dword [ecx + 0xb24]
movss dword [ebp - 0x14], xmm0
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov ecx, dword [ebx + 4]
add ecx, esi
call fcn.10051620
mov ecx, dword [0x1014b65c]
and eax, 0x7fffffff
mov ecx, dword [ecx + 0x54]
mov dword [ecx], eax
mov eax, dword [0x1014b65c]
mov ecx, dword [eax + 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x630]
call eax
test al, al
je 0x1000cf02
inc esi
cmp esi, 0xa
jl 0x1000cd60
jmp 0x1000cf05
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x1014a168]
jne 0x1000cd19
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x1c]
mov esi, dword [ecx + 4]
cmp esi, edx
jg 0x1000cdde
mov eax, edx
sub eax, esi
cmp eax, dword [edi + 0x18]
jg 0x1000cdde
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x1014b65c]
xor ebx, ebx
mov esi, dword [eax + 0x78]
mov eax, dword [eax + 0x54]
movss xmm0, dword [esi + 0xa54]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xb24]
mov dword [ebp - 0x10], eax
movss dword [ebp - 0x14], xmm0
mov byte [edi + 0x14], 1
cmp dword [edi + 0x18], ebx
jle 0x1000ce81
nop
mov ecx, dword [ecx + 4]
add ecx, ebx
call fcn.10051620
mov ecx, dword [0x1014b65c]
and eax, 0x7fffffff
mov ecx, dword [ecx + 0x54]
mov dword [ecx], eax
mov ecx, esi
mov dword [esi + 0xb24], 0
mov eax, dword [esi]
mov dword [esi + 0xa54], 0x447a0000
mov dword [esi + 0xb54], 0
mov dword [esi + 0xb60], 0
mov eax, dword [eax + 0x630]
call eax
movss xmm0, dword [ebp - 0x14]
test al, al
jne 0x1000ced3
mov eax, dword [ebp - 0x10]
inc ebx
mov ecx, dword [ebp + 8]
mov dword [esi + 0xb24], eax
movss dword [esi + 0xa54], xmm0
cmp ebx, dword [edi + 0x18]
jl 0x1000ce10
mov eax, dword [0x1014b65c]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x54]
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xb24], eax
movss dword [esi + 0xa54], xmm0
mov byte [edi + 0x14], 0
mov eax, dword [ecx + 4]
mov dword [edi + 0x1c], eax
mov ecx, dword [edi + 0x1c]
mov dword [edx + 4], ecx
call fcn.10051620
and eax, 0x7fffffff
mov dword [edi + 0x10], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
add eax, ebx
mov ebx, dword [ebp - 0x18]
mov dword [edi + 0x1c], eax
mov eax, dword [0x1014b65c]
mov eax, dword [eax + 0x54]
mov dword [eax], ebx
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xb24], eax
mov byte [edi + 0x14], 0
movss dword [esi + 0xa54], xmm0
jmp 0x1000ceac
add dword [ebx + 4], esi
mov eax, dword [0x1014b65c]
mov ecx, dword [ebp - 0x18]
movss xmm0, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
mov dword [eax + 0xb24], ecx
mov eax, dword [0x1014b65c]
mov eax, dword [eax + 0x54]
mov dword [eax], edi
mov eax, dword [0x1014b65c]
mov eax, dword [eax + 0x78]
movss dword [eax + 0xa54], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4