Function at 0x1003f49
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x1005d57
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xa8
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
jne 0x1003f74
push ebx
push ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x1004332
push edi
push ebx
lea ecx, [ebp - 0xb4]
call sub.MFC42u.DLL_CClientDC::CClientDC
cmp dword [0x100724c], ebx
push 1
pop edi
mov dword [ebp - 4], edi
je 0x1003f9f
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
mov dword [ebp - 0x14], edi
je 0x1003fa2
mov dword [ebp - 0x14], ebx
mov edi, dword [esi + 0x130]
push ebx
mov eax, edi
cdq
sub eax, edx
mov dword [ebp - 0x10], eax
sar dword [ebp - 0x10], 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x10]
sub ecx, edi
mov edi, dword [esi + 0x138]
add eax, ecx
cmp edi, dword [ebp - 0x10]
jge 0x1003fd1
mov edi, dword [ebp - 0x10]
jmp 0x1003fd7
cmp edi, eax
jle 0x1003fd7
mov edi, eax
mov eax, dword [esi + 0x134]
push 1
mov dword [ebp - 0x1c], eax
cdq
sub eax, edx
mov dword [ebp - 0x10], eax
sar dword [ebp - 0x10], 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x1c]
add eax, ecx
mov ecx, dword [esi + 0x13c]
cmp ecx, dword [ebp - 0x10]
jge 0x1004009
mov ecx, dword [ebp - 0x10]
jmp 0x100400f
cmp ecx, eax
jle 0x100400f
mov ecx, eax
mov eax, dword [esi + 0x130]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
cdq
sub eax, edx
mov dword [ebp - 0x20], ecx
sar eax, 1
sub edi, eax
xor eax, eax
mov dword [ebp - 0x24], edi
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x100406c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x14
push eax
call dword [0x100724c]
cmp dword [ebp - 0x44], ebx
je 0x1004064
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_GetIconInfo]
cmp dword [ebp - 0x54], ebx
jne 0x100406c
mov dword [ebp - 0x14], ebx
mov ecx, esi
call fcn.01003903
neg eax
sbb eax, eax
mov edi, dword [ebp - 0x24]
and eax, 0xff66ffe8
lea ecx, [ebp - 0xb4]
add eax, 0xcc0020
neg ecx
push eax
push dword [ebp - 0x20]
sbb ecx, ecx
and ecx, dword [ebp - 0xb0]
push edi
push ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push ebx
push ebx
push dword [esi + 0xb8]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add ecx, edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x1c]
add ecx, eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x70], edi
push dword [esi + 0x20]
mov dword [ebp - 0x64], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0xa0]
push eax
push dword [esi + 0x20]
call edi
lea eax, [ebp - 0x98]
push eax
push dword [esi + 0x20]
call edi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x100416d
mov eax, dword [ebp - 0x38]
lea edi, [esi + 0xb4]
sub eax, dword [ebp - 0x24]
push 0x808080
mov ecx, edi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x74], eax
mov eax, dword [edi]
call dword [eax + 0x34]
push ebx
push ebx
lea ecx, [ebp - 0x80]
push ebx
push ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
push 2
push ebx
push ebx
mov ecx, edi
call dword [eax + 0x68]
mov eax, dword [edi]
push dword [ebp - 0x10]
mov ecx, edi
call dword [eax + 0x34]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x90], eax
add eax, 0x20
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x8c], ecx
lea eax, [ebp - 0x38]
add ecx, 0x20
push eax
mov dword [ebp - 0x84], ecx
call dword [sym.imp.USER32.dll_IntersectRect]
cmp dword [ebp - 0x14], ebx
je 0x1004290
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1004290
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
sub edi, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
push dword [ebp - 0x54]
sub edi, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call sub.MFC42u.DLL_CGdiObject::FromHandle
cmp eax, ebx
jne 0x10041e9
xor eax, eax
jmp 0x10041ec
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x148]
call sub.MFC42u.DLL_CDC::SelectGdiObject
lea eax, [esi + 0x144]
cmp eax, ebx
jne 0x1004206
xor eax, eax
jmp 0x1004209
mov eax, dword [eax + 4]
push 0x8800c6
push ebx
push ebx
push eax
push 0x20
push 0x20
push dword [ebp - 0x14]
push edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
push dword [esi + 0xb8]
call edi
cmp dword [ebp - 0x50], ebx
je 0x1004264
push dword [ebp - 0x50]
call sub.MFC42u.DLL_CGdiObject::FromHandle
cmp eax, ebx
jne 0x100423c
xor eax, eax
jmp 0x100423f
mov eax, dword [eax + 4]
push eax
push dword [esi + 0x148]
call sub.MFC42u.DLL_CDC::SelectGdiObject
lea eax, [esi + 0x144]
cmp eax, ebx
jne 0x1004259
xor eax, eax
jmp 0x100425c
mov eax, dword [eax + 4]
push 0x660046
push ebx
jmp 0x100427c
lea eax, [esi + 0x144]
cmp eax, ebx
jne 0x1004272
xor eax, eax
jmp 0x1004275
mov eax, dword [eax + 4]
push 0x660046
push 0x20
push ebx
push eax
push 0x20
push 0x20
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi + 0xb8]
call edi
mov edi, dword [ebp + 8]
lea eax, [esi + 0x124]
push ebx
push eax
mov ecx, edi
call sub.MFC42u.DLL_CDC::SelectPalette
push dword [edi + 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 3
mov ecx, edi
call sub.MFC42u.DLL_CDC::SetStretchBltMode
mov eax, dword [esi + 0x120]
cmp eax, ebx
je 0x10042ca
mov ecx, dword [eax]
push ebx
push 1
push eax
call dword [ecx + 0x58]
lea eax, [esi + 0xb4]
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.010038cf
mov edi, eax
mov ecx, esi
imul edi, dword [ebp - 0x1c]
call fcn.010038cf
imul eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
jne 0x10042f6
xor ecx, ecx
jmp 0x10042f9
mov ecx, dword [ecx + 4]
push 0xcc0020
mov esi, dword [ebp + 8]
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push ebx
push ebx
push ecx
push edi
push eax
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_StretchBlt]
push ebx
mov ecx, esi
push dword [ebp - 0x10]
call sub.MFC42u.DLL_CDC::SelectPalette
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.01005768
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8