Function at 0x42ea00
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x2c], ecx
mov edi, dword [ecx + 0x46c]
mov eax, dword [ecx + 0x474]
add eax, edi
mov dword [esp + 0x30], edi
cmp eax, 1
mov dword [esp + 0x3c], eax
jl 0x42ecc4
cmp dword [ecx + 0xee8], 0xffffffff
je 0x42ecc4
xor ecx, ecx
xor ebx, ebx
cmp eax, ecx
mov dword [esp + 0x24], ebx
jle 0x42ecc4
fild dword [esp + 0x5c]
push ebp
mov dword [esp + 0x2c], ecx
fstp dword [esp + 0x38]
fild dword [esp + 0x64]
fstp dword [esp + 0x3c]
jmp 0x42ea70
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
xor ecx, ecx
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ecx
call ebp
movsx eax, ax
test eax, 0xffff0000
jne 0x42eaa1
push 0xa3
call ebp
movsx ecx, ax
test ecx, 0xffff0000
je 0x42eaa9
mov dword [esp + 0x1c], 1
mov esi, dword [esi + 0x20c]
mov ebp, dword [esp + 0x2c]
add esi, ebp
xor eax, eax
mov dword [esp + 0x18], 0
mov edx, dword [esi + 0x194c]
test edx, edx
setne al
inc eax
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*8]
shl edx, 2
sub edx, eax
cmp ebx, edi
lea ebp, [esi + edx*4 + 4]
jge 0x42eaf3
mov eax, dword [esp + 0x30]
push ebx
lea ecx, [eax + 0x58]
call dword [sym.imp.VzSatData.dll_public:_class_CVzSatModel____thiscall_CVzSatPro::GetModel_int_]
mov edi, eax
jmp 0x42eb25
mov ecx, dword [esp + 0x30]
sub ebx, edi
push ebx
add ecx, 0x58
call dword [sym.imp.VzSatData.dll_public:_class_CVzSatTLA____thiscall_CVzSatPro::GetTLA_int_]
mov ebx, dword [sym.imp.VzSatData.dll_public:_class_CVzSatPhoto____thiscall_CVzSatTLA::GetPhoto_enum_CVzSatTLA::_SIGHT_]
mov edi, eax
push 0
mov ecx, edi
call ebx
push 2
mov ecx, edi
call ebx
push 1
mov ecx, edi
call ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.SpView.dll_public:_bool___thiscall_CSpView::ClntToImg_float___float__]
mov eax, dword [esp + 0x14]
fild dword [eax + 0x254]
fild dword [esi + 0x3c]
mov eax, dword [esp + 0x18]
test eax, eax
fsubr dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x44]
fild dword [esi + 0x40]
fsubr dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x48]
fild dword [ebp + 0x38]
fsubr dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x4c]
fild dword [ebp + 0x3c]
fsubr dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x50]
je 0x42ebaf
fild dword [esi + 0x8a8]
fsubr dword [esp + 0x60]
fmul st(1)
fstp dword [esp + 0x54]
fild dword [esi + 0x8ac]
fsubr dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x150]
test ecx, ecx
fstp st(0)
mov dword [esp + 0x20], eax
jne 0x42ebea
xor esi, esi
test eax, eax
jle 0x42ebe2
push esi
mov ecx, edi
call dword [sym.imp.VzSatData.dll_public:_class_CSubModelData____thiscall_CVzSatStrip::GetSubModel_int_]
mov byte [eax + 0x4e0], 0
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x42ebc9
mov dword [esp + 0x24], 1
xor ebp, ebp
test eax, eax
jle 0x42ec8a
mov ebx, dword [esp + 0x44]
push ebp
mov ecx, edi
call dword [sym.imp.VzSatData.dll_public:_class_CSubModelData____thiscall_CVzSatStrip::GetSubModel_int_]
mov ecx, dword [esp + 0x48]
mov esi, eax
push 0
push ecx
push ebx
mov ecx, esi
call dword [sym.imp.VzSatData.dll_public:_bool___thiscall_CSubModelData::IsPtInModel_struct_tagFPoint__int_]
test al, al
jne 0x42ec4f
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push 2
push edx
push eax
mov ecx, esi
call dword [sym.imp.VzSatData.dll_public:_bool___thiscall_CSubModelData::IsPtInModel_struct_tagFPoint__int_]
test al, al
jne 0x42ec4f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42ec79
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push 1
push ecx
push edx
mov ecx, esi
call dword [sym.imp.VzSatData.dll_public:_bool___thiscall_CSubModelData::IsPtInModel_struct_tagFPoint__int_]
test al, al
je 0x42ec79
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42ec6a
mov al, byte [esi + 0x4e0]
test al, al
sete al
mov byte [esi + 0x4e0], al
jmp 0x42ec71
mov byte [esi + 0x4e0], 1
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jl 0x42ebf8
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42eca4
mov ecx, dword [esp + 0x14]
push 0
push 0
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
inc ebx
add ecx, 0x1950
cmp ebx, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
jl 0x42ea66
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 8