Function at 0x416ec0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x470268
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49fba8]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x3c]
call sub.MFC80U.DLL_Ordinal_347
mov ebp, dword [esp + 0x8c]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x84], ebx
jne 0x416f0a
xor eax, eax
jmp 0x416f0d
mov eax, dword [ebp + 4]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call edi
push eax
lea ecx, [esp + 0x40]
call sub.MFC80U.DLL_Ordinal_1270
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], vtable.CBitmap.0
mov eax, dword [esi + 0x9d0]
sub eax, dword [esi + 0x9c8]
mov ecx, dword [esi + 0x9cc]
sub ecx, dword [esi + 0x9c4]
push eax
mov eax, dword [ebp + 4]
push ecx
push eax
mov byte [esp + 0x90], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_1271
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
push ecx
push edx
call sub.MFC80U.DLL_Ordinal_5633
lea ecx, [esp + 0x4c]
mov dword [esp + 0x28], eax
call sub.MFC80U.DLL_Ordinal_347
mov eax, dword [ebp + 4]
push eax
mov byte [esp + 0x88], 2
call edi
push eax
lea ecx, [esp + 0x50]
call sub.MFC80U.DLL_Ordinal_1270
lea eax, [esi + 0x468]
cmp eax, ebx
jne 0x416fa4
xor eax, eax
jmp 0x416fa7
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x54]
push eax
call sub.MFC80U.DLL_Ordinal_5633
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x6c]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x9c8]
mov ebp, dword [esi + 0x9c4]
mov eax, dword [esi + 0x9d0]
mov ecx, dword [esi + 0x9cc]
push 0xcc0020
push edx
push ebp
sub eax, edx
mov edx, dword [esp + 0x5c]
push edx
push eax
mov eax, dword [esp + 0x54]
sub ecx, ebp
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp edi, ebx
jne 0x417002
xor edi, edi
jmp 0x417005
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x50]
push edi
push ecx
call sub.MFC80U.DLL_Ordinal_5633
lea ecx, [esp + 0x4c]
call sub.MFC80U.DLL_Ordinal_1920
lea edx, [esi + 0x978]
push edx
lea ecx, [esp + 0x40]
call sub.MFC80U.DLL_Ordinal_5638
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], eax
call sub.MFC80U.DLL_Ordinal_6033
push 1
lea ecx, [esp + 0x40]
call sub.MFC80U.DLL_Ordinal_5727
mov eax, dword [esi + 0x9a4]
mov ecx, dword [eax - 0xc]
mov eax, dword [esi + 0x99c]
mov ebp, dword [esi + 0x998]
mov edi, dword [esi + 0x994]
lea ebx, [esi + 0x9a4]
mov dword [esp + 0x14], eax
add eax, ebp
cmp eax, 5
mov dword [esp + 0x20], ecx
mov dword [esi + 0x998], eax
jle 0x417084
mov dword [esi + 0x99c], 0xffffffff
jmp 0x417092
test eax, eax
jge 0x417092
mov dword [esi + 0x99c], 1
test ecx, ecx
mov dword [esp + 0x18], 0
jle 0x417187
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_860]
movzx edx, ax
lea eax, [esp + 0x34]
push eax
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esi + 0x9d0]
sub ecx, dword [esi + 0x9c8]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
test byte [esi + 0x9a0], 1
je 0x4170f4
lea eax, [ebp + ebp]
mov ecx, dword [esi + 0x9d0]
sub ecx, dword [esi + 0x9c8]
mov edx, dword [esi + 0x9cc]
sub edx, dword [esi + 0x9c4]
push 0
push 1
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x70], edx
lea edx, [esp + 0x68]
push edx
push 4
push eax
mov eax, dword [esp + 0x58]
push edi
push eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call dword [sym.imp.GDI32.dll_ExtTextOutW]
add edi, dword [esp + 0x34]
test byte [esi + 0x9a0], 2
je 0x417153
add edi, ebp
add ebp, dword [esp + 0x14]
cmp ebp, 5
jle 0x417166
mov dword [esp + 0x14], 0xffffffff
jmp 0x417172
test ebp, ebp
jge 0x417172
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jl 0x4170a2
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call ebx
movzx ebp, ax
and ebp, 0x80
push 0x11
shr ebp, 7
call ebx
and eax, 0x80
shr eax, 7
test ebp, ebp
je 0x4171ba
test eax, eax
je 0x4171ba
add dword [esi + 0x994], 0xffffffec
jmp 0x4171c1
add dword [esi + 0x994], 0xfffffffe
test edi, edi
jge 0x4171d7
mov ecx, dword [esi + 0x9cc]
sub ecx, dword [esi + 0x9c4]
mov dword [esi + 0x994], ecx
mov eax, dword [esi + 0x9d0]
sub eax, dword [esi + 0x9c8]
mov ecx, dword [esi + 0x9cc]
mov edi, dword [esp + 0x40]
sub ecx, dword [esi + 0x9c4]
mov edx, dword [esi + 0x9c8]
mov esi, dword [esi + 0x9c4]
push 0xcc0020
push 0
push 0
push edi
push eax
push ecx
push edx
mov edx, dword [esp + 0xa8]
mov eax, dword [edx + 4]
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x40]
call sub.MFC80U.DLL_Ordinal_5638
mov eax, dword [esp + 0x28]
test eax, eax
je 0x417237
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x40]
push eax
push edx
call sub.MFC80U.DLL_Ordinal_5633
lea ecx, [esp + 0x3c]
call sub.MFC80U.DLL_Ordinal_1920
lea ecx, [esp + 0x2c]
call sub.MFC80U.DLL_Ordinal_1925
lea ecx, [esp + 0x4c]
mov byte [esp + 0x84], 1
call sub.MFC80U.DLL_Ordinal_602
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 0
mov dword [esp + 0x2c], vtable.CBitmap.0
call fcn.00416260
lea ecx, [esp + 0x3c]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC80U.DLL_Ordinal_602
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 4