Function at 0x10158ad0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x234
mov eax, dword [0x1023c014]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov ebx, 1
mov edi, ecx
mov esi, ebx
push 0x10
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [edi]
and eax, 0x1000
mov dword [esp + 0x10], eax
cmp ecx, sym.HncOfficeFramework.dll_const_CHDCSpinEdit::vftablefor__CHDlgItem
push 0
mov eax, dword [ecx + 0x84]
mov ecx, edi
jne 0x10158dae
mov byte [edi + 0x80], 0
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCSpinEdit::_GetText_int_
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCSpinEdit::_FormatText_unsigned_short_int__
test eax, eax
je 0x10158b4b
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [eax + 0x40]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x10158b69
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x10158b69
mov eax, dword [eax + 0x20]
test eax, eax
je 0x10158b69
mov eax, dword [eax + 8]
mov dword [eax + 0x3c], ebx
cmp dword [ebp + 8], 0
je 0x10158d97
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call sym.HncOfficeFramework.dll_public:_int___thiscall_CHDCSpinEdit::GetPos_int__
test eax, eax
je 0x10158d97
mov cl, byte [edi + 0x82]
movsx edx, byte [edi + 0x81]
movsx eax, cl
add edx, dword [eax*4 + sym.HncOfficeFramework.dll_int__CHDCSpinEdit::s_DefaultPrecision]
xor eax, eax
cmp cl, 8
cmove edx, eax
cmp dword [esp + 0x10], eax
setne al
add eax, edx
mov dword [esp + 0x28], eax
test edx, edx
jle 0x10158bc0
lea ebx, [ebx + ebx*4]
add ebx, ebx
sub edx, esi
jne 0x10158bb7
test eax, eax
jle 0x10158bd2
lea esi, [esi + esi*4]
add esi, esi
sub eax, 1
jne 0x10158bc4
mov dword [esp + 0x24], esi
push 1
push ebx
push dword [esp + 0x20]
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
mov esi, eax
add esp, 4
mov ecx, edi
movd xmm0, esi
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call sym.HncOfficeFramework.dll_private:_double___thiscall_CHDCSpinEdit::_HwpunitToValue_double_
movd xmm0, esi
sub esp, 8
cvtdq2pd xmm0, xmm0
mov ecx, edi
fstp qword [esp + 0x20]
movsd qword [esp], xmm0
call sym.HncOfficeFramework.dll_private:_double___thiscall_CHDCSpinEdit::_HwpunitToValue_double_
fstp qword [esp + 0x10]
movsd xmm0, qword [esp + 0x10]
xorps xmm1, xmm1
comisd xmm0, xmm1
movsd xmm0, qword [esp + 0x18]
jbe 0x10158c36
addsd xmm0, qword [0x101e0108]
jmp 0x10158c3e
subsd xmm0, qword [0x101e0108]
mov eax, dword [esp + 0x28]
mov ecx, 1
cvttsd2si esi, xmm0
mov dword [esp + 0x10], esi
test eax, eax
jle 0x10158c5d
lea ecx, [ecx + ecx*4]
add ecx, ecx
sub eax, 1
jne 0x10158c53
mov eax, esi
cdq
idiv ecx
test edx, edx
je 0x10158c8c
mov eax, dword [edi + 0x7c]
imul eax, dword [ebp + 8]
test eax, eax
jns 0x10158c7b
test esi, esi
js 0x10158c86
sub ecx, edx
add ecx, esi
jmp 0x10158c90
test esi, esi
jns 0x10158c86
lea eax, [edx + ecx]
sub esi, eax
jmp 0x10158c88
sub esi, edx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push esi
push 1
push ecx
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
mov ecx, dword [edi + 0x7c]
add esp, 0xc
imul ecx, dword [ebp + 8]
push 1
push esi
add eax, ecx
push eax
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
mov esi, eax
add esp, 4
mov ecx, edi
movd xmm0, esi
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
call sym.HncOfficeFramework.dll_private:_double___thiscall_CHDCSpinEdit::_ValueToHwpunit_double_
movd xmm0, esi
sub esp, 8
cvtdq2pd xmm0, xmm0
mov ecx, edi
fstp qword [esp + 0x30]
movsd qword [esp], xmm0
call sym.HncOfficeFramework.dll_private:_double___thiscall_CHDCSpinEdit::_ValueToHwpunit_double_
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
xorps xmm1, xmm1
comisd xmm0, xmm1
movsd xmm0, qword [esp + 0x28]
jbe 0x10158d0b
addsd xmm0, qword [0x101e0108]
jmp 0x10158d13
subsd xmm0, qword [0x101e0108]
cvttsd2si eax, xmm0
push ebx
push 1
push eax
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
mov esi, dword [edi + 0x74]
add esp, 0xc
cmp byte [edi + 0x82], 9
mov ebx, eax
jne 0x10158d61
push dword [edi + 0x70]
push 0x64
push esi
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
add esp, 0xc
mov esi, eax
push dword [edi + 0x70]
push 0x64
push dword [edi + 0x78]
call dword [sym.imp.HncFoundation.dll_HncIntMulDiv]
add esp, 0xc
cmp ebx, esi
jl 0x10158d6e
cmp ebx, eax
cmovg ebx, eax
mov esi, ebx
jmp 0x10158d6e
cmp ebx, esi
jl 0x10158d6e
cmp ebx, dword [edi + 0x78]
mov esi, ebx
cmovg esi, dword [edi + 0x78]
movd xmm0, esi
lea eax, [esp + 0x30]
cvtdq2pd xmm0, xmm0
push eax
mov ecx, edi
movsd qword [edi + 0x68], xmm0
call sym.HncOfficeFramework.dll_private:_int___thiscall_CHDCSpinEdit::_FormatText_unsigned_short_int__
test eax, eax
je 0x10158d97
mov eax, dword [edi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [eax + 0x40]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
call eax
jmp 0x10158b4b