Function at 0x41cc70
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp dword [0x50b3b0], 0
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, ecx
jne 0x41ccac
mov eax, dword [0x50b384]
push 0xfffffffffffffff0
push eax
call edi
test eax, 0x8000000
je 0x41ccac
mov ecx, dword [0x50b384]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0
mov ecx, esi
call fcn.004068c0
mov byte [ebp - 1], al
test al, al
je 0x41ccd0
cmp dword [esi + 0x28d6], 0
jne 0x41ccd0
push 1
mov ecx, esi
call fcn.00409990
mov edx, dword [0x50b384]
push 0xffffffffffffffec
push edx
call edi
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x1235], 0
jne 0x41ccf5
test al, 8
je 0x41ccf5
mov ecx, esi
call fcn.0040ac30
mov ecx, dword [esi + 0x423c]
call fcn.00491640
call fcn.004a1180
cmp dword [esi + 0x4384], 0
jne 0x41cd2d
cmp byte [esi + 0x504b], 0
je 0x41cd3d
mov ecx, esi
call fcn.004170c0
pop edi
mov byte [esi + 0x504b], 0
pop esi
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x504c], 0
jne 0x41cd3d
mov byte [esi + 0x504c], 0
push ebx
call fcn.004a0270
call fcn.004a2460
cmp byte [esi + 0x4338], 0
movzx edx, al
mov dword [ebp - 8], edx
je 0x41ce00
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x433c]
mov ecx, dword [0x50b3a0]
cmp eax, dword [ecx + 0x113e8]
jbe 0x41ce00
mov edx, dword [esi + 0x4334]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41cdef
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41cdef
push 0x1510001
push 0x22
push 0x100
mov byte [esi + 0x4338], 0
call fcn.004a4a70
mov ecx, eax
call fcn.00478be0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
mov ecx, dword [ebp + 8]
push 0xc1510001
push 0x22
push 0x101
call fcn.004a4a70
mov ecx, eax
call fcn.00478be0
push eax
call ebx
call fcn.004a2460
call edi
mov dword [esi + 0x433c], eax
mov byte [esi + 0x4338], 1
jmp 0x41ce00
mov dword [esi + 0x4334], 0
mov byte [esi + 0x4338], 0
mov ecx, dword [esi + 0x4238]
test ecx, ecx
je 0x41ce0f
call fcn.0043a000
cmp dword [ebp - 8], 0
jne 0x41ce38
cmp byte [esi + 0x4330], 0
je 0x41ce38
push 0
push 0
mov byte [esi + 0x4330], 0
call fcn.004a29f0
add esp, 8
mov ecx, esi
call fcn.004063a0
mov eax, dword [0x50b384]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
setne al
test al, al
jne 0x41ced6
mov ecx, dword [0x50b3a0]
cmp byte [ecx + 0x1220], al
je 0x41ce67
cmp byte [esi + 0x426a], al
jne 0x41ced6
cmp byte [esi + 0x4224], 0
jne 0x41ce81
mov edx, dword [0x50b384]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41ced6
mov ax, word [esi + 0x42c0]
mov ecx, 0x80
and ax, cx
jne 0x41ce9a
cmp byte [esi + 0x42c4], al
je 0x41cecf
mov edx, ecx
cmp ax, dx
jne 0x41cec6
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x41cecf
mov ecx, esi
call fcn.00406ac0
mov byte [esi + 0x42c4], 1
push 0
mov ecx, esi
call fcn.00411220
call fcn.004a0910
jmp 0x41cee6
cmp byte [esi + 0x42c4], 0
je 0x41cee6
mov byte [esi + 0x42c4], 0
mov ecx, dword [0x50b3a0]
push 0
call fcn.00442e90
test al, al
je 0x41cf0d
cmp byte [ebp - 1], 0
jne 0x41cf4d
cmp dword [esi + 0x5070], 0
je 0x41cf0d
mov ecx, esi
call fcn.0041a740
mov edi, dword [ebp + 8]
pop ebx
test edi, edi
je 0x41d025
mov edx, dword [0x50b3a0]
cmp byte [edx + 0x11289], 0
mov cl, byte [edi + 0x14f4]
je 0x41d006
cmp byte [ebp - 1], 0
jne 0x41d006
cmp dword [ebp - 8], 0
jne 0x41d006
mov al, 1
jmp 0x41d008
push 0
mov ecx, esi
call fcn.00405600
test al, al
jne 0x41cf0d
cmp dword [esi + 0x4260], 0x51f
jne 0x41cf0d
push 1
mov ecx, esi
call fcn.00416190
mov bl, al
xor eax, eax
cmp dword [esi + 0x5070], eax
movzx ecx, bl
setne al
cmp ecx, eax
je 0x41cf0d
mov edi, dword [sym.imp.USER32.dll_KillTimer]
xor edx, edx
test bl, bl
setne dl
push 3
mov dword [esi + 0x5070], edx
mov eax, dword [0x50b384]
push eax
call edi
mov ecx, dword [0x50b384]
push 4
push ecx
call edi
xor edx, edx
test bl, bl
sete dl
add edx, 3
movzx ecx, dx
test bl, bl
je 0x41cfc9
mov eax, dword [0x50b3a0]
mov eax, dword [eax + 0x122c]
jmp 0x41cfd5
mov edx, dword [0x50b3a0]
mov eax, dword [edx + 0x1230]
test eax, eax
je 0x41cff2
push 0
push eax
movzx eax, cx
mov ecx, dword [0x50b384]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x41cf0d
test bl, bl
je 0x41cf06
mov ecx, esi
call fcn.0041a700
jmp 0x41cf0d
xor al, al
cmp cl, al
je 0x41d025
mov ecx, edi
mov byte [edi + 0x14f4], al
call fcn.004a4b00
test al, al
je 0x41d025
lea ecx, [edi + 8]
call fcn.0049d200
cmp dword [esi + 0x73bc], 0
je 0x41d040
cmp byte [esi + 0x73c0], 0
jne 0x41d040
push 0
mov ecx, esi
call fcn.004121a0
mov ecx, dword [0x50b3a4]
call fcn.0045e4a0
test al, al
je 0x41d059
push 1
call fcn.0049fbc0
add esp, 4
mov ecx, dword [esi + 0x4230]
call fcn.0043dcf0
test eax, eax
je 0x41d0d9
cmp dword [esi + 0x4240], 0
je 0x41d0d9
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
test eax, eax
je 0x41d0d9
push 0x80
lea ecx, [ebp - 0x110]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x41d0d9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.VirtualConsoleClass
lea edx, [ebp - 0x110]
push edx
call edi
test eax, eax
je 0x41d0ce
push str.VirtualConsoleClass
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x41d0d9
mov ecx, dword [esi + 0x4240]
call fcn.004ade50
push 0
push str.TIMER_MAIN_ID
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.0041bcf0
cmp dword [ebp - 8], 0
jne 0x41d10e
mov eax, dword [0x50b3a0]
cmp byte [eax + 0x11a41], 0
je 0x41d10e
lea ecx, [eax + 0x11a3c]
call fcn.0049c230
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4