Function at 0x405300
Capabilities:
Check os version
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41b0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x40]
call sub.MFC71U.DLL_CDBVariant::CDBVariant
mov ebp, dword [esp + 0x90]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x88], ebx
jne 0x40533f
xor eax, eax
jmp 0x405342
mov eax, dword [ebp + 4]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call edi
push eax
lea ecx, [esp + 0x44]
call sub.MFC71U.DLL_CAsyncSocket::Attach
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 0x41ecf0
mov ecx, dword [esi + 0x9ac]
mov eax, dword [esi + 0x9b4]
mov edx, dword [esi + 0x9a8]
sub eax, ecx
mov ecx, dword [esi + 0x9b0]
push eax
mov eax, dword [ebp + 4]
sub ecx, edx
push ecx
push eax
mov byte [esp + 0x94], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC71U.DLL_CDC::Attach
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
push ecx
push edx
call sub.MFC71U.DLL_COleControl::SelectFontObject
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], eax
call sub.MFC71U.DLL_CDBVariant::CDBVariant
mov eax, dword [ebp + 4]
push eax
mov byte [esp + 0x8c], 2
call edi
push eax
lea ecx, [esp + 0x54]
call sub.MFC71U.DLL_CAsyncSocket::Attach
lea eax, [esi + 0x45c]
cmp eax, ebx
jne 0x4053dd
xor eax, eax
jmp 0x4053e0
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x58]
push eax
call sub.MFC71U.DLL_COleControl::SelectFontObject
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x70]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x9ac]
mov ebp, dword [esi + 0x9a8]
mov eax, dword [esi + 0x9b4]
push 0xcc0020
push edx
push ebp
mov ecx, edx
mov edx, dword [esp + 0x60]
sub eax, ecx
mov ecx, dword [esi + 0x9b0]
push edx
push eax
mov eax, dword [esp + 0x58]
sub ecx, ebp
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp edi, ebx
jne 0x40543d
xor edi, edi
jmp 0x405440
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x54]
push edi
push ecx
call sub.MFC71U.DLL_COleControl::SelectFontObject
lea ecx, [esp + 0x50]
call sub.MFC71U.DLL_CRichEditView::DeleteContents
lea edx, [esi + 0x95c]
push edx
lea ecx, [esp + 0x44]
call sub.MFC71U.DLL_CDC::SelectObject
push ebx
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], eax
call sub.MFC71U.DLL_CDC::SetTextCharacterExtra
push 1
lea ecx, [esp + 0x44]
call sub.MFC71U.DLL_CListCtrl::SetBkImage
mov eax, dword [esi + 0x988]
mov ecx, dword [eax - 0xc]
mov eax, dword [esi + 0x980]
mov ebx, dword [esi + 0x97c]
mov ebp, dword [esi + 0x978]
mov dword [esp + 0x10], eax
add eax, ebx
cmp eax, 5
mov dword [esp + 0x1c], ecx
mov dword [esi + 0x97c], eax
jle 0x4054b9
mov dword [esi + 0x980], 0xffffffff
jmp 0x4054c7
test eax, eax
jge 0x4054c7
mov dword [esi + 0x980], 1
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x4055d7
jmp 0x4054e0
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esi + 0x988]
call dword [sym.imp.MFC71U.DLL_COleVariant::operator]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x30]
push edx
push 1
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0x9b4]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
sub ecx, dword [esi + 0x9ac]
mov eax, 0x55555556
imul ecx
mov cl, byte [esi + 0x984]
mov eax, edx
shr eax, 0x1f
add eax, edx
test cl, 1
je 0x405540
lea eax, [ebx + ebx]
mov edx, dword [esi + 0x9ac]
mov ecx, dword [esi + 0x9b4]
sub ecx, edx
mov edx, dword [esi + 0x9b0]
sub edx, dword [esi + 0x9a8]
push 0
push 1
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x74], edx
lea edx, [esp + 0x6c]
push edx
push 4
push eax
mov eax, dword [esp + 0x5c]
push ebp
push eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov al, byte [esi + 0x984]
add ebp, edi
test al, 2
je 0x4055a3
add ebp, ebx
add ebx, dword [esp + 0x10]
cmp ebx, 5
jle 0x4055b6
mov dword [esp + 0x10], 0xffffffff
jmp 0x4055c2
test ebx, ebx
jge 0x4055c2
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4054e0
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call ebx
xor edi, edi
mov di, ax
push 0x11
and edi, 0x80
shr edi, 7
call ebx
and eax, 0x80
shr eax, 7
test edi, edi
je 0x40560e
test eax, eax
je 0x40560e
mov eax, dword [esi + 0x978]
add eax, 0xffffffec
jmp 0x405617
mov eax, dword [esi + 0x978]
add eax, 0xfffffffe
test ebp, ebp
mov dword [esi + 0x978], eax
jge 0x405633
mov ecx, dword [esi + 0x9b0]
sub ecx, dword [esi + 0x9a8]
mov dword [esi + 0x978], ecx
mov ecx, dword [esi + 0x9ac]
mov eax, dword [esi + 0x9b4]
mov edi, dword [esp + 0x44]
mov ebp, dword [esi + 0x9a8]
mov edx, dword [esi + 0x9ac]
push 0xcc0020
push 0
push 0
sub eax, ecx
mov ecx, dword [esi + 0x9b0]
push edi
push eax
sub ecx, ebp
push ecx
push edx
mov edx, dword [esp + 0xac]
mov eax, dword [edx + 4]
mov esi, ebp
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x44]
call sub.MFC71U.DLL_CDC::SelectObject
mov eax, dword [esp + 0x24]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x405697
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x34]
push eax
push edx
call sub.MFC71U.DLL_COleControl::SelectFontObject
lea ecx, [esp + 0x30]
call sub.MFC71U.DLL_CRichEditView::DeleteContents
lea ecx, [esp + 0x18]
call sub.MFC71U.DLL_CListBox::DeleteItem
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 1
call fcn.00419c8c
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0
mov dword [esp + 0x18], 0x41ecc8
call sub.MFC71U.DLL_CListBox::DeleteItem
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], 0xffffffff
call fcn.00419c8c
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4