Function at 0x4f5288
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esi, esi
inc esi
test esi, esi
js 0x4f52a8
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x4f52a1
mov dword [ebp + 0xc], esp
mov ebx, ecx
test ebx, ebx
js 0x4f52b8
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4f52b1
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x40112c]
call fcn.00405ccc
xor eax, eax
push ebp
push 0x4f5792
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 1
test eax, eax
jl 0x4f52f1
cmp eax, dword [ebp - 0xc]
jle 0x4f52f6
call fcn.00403c14
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
xor edx, edx
call fcn.004057c0
je 0x4f5772
lea eax, [ebp - 0x138]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403628
xor eax, eax
test eax, eax
jl 0x4f5326
cmp eax, dword [ebp + 8]
jle 0x4f532b
call fcn.00403c14
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4f5344
call fcn.00403c14
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004ea0ec
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4f5772
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004f97e8
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x23], 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4f5395
mov dword [ebp - 0x18], 1
jmp 0x4f53a9
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x4f53a9
mov dword [ebp - 0x18], 2
mov eax, dword [ebp - 0xc]
inc eax
sub eax, 1
jno 0x4f53b7
call fcn.00403c1c
test eax, eax
jle 0x4f5438
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x4f53d1
cmp eax, dword [ebp - 0xc]
jle 0x4f53d6
call fcn.00403c14
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
xor edx, edx
call fcn.004057c0
je 0x4f5438
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x4f53f1
cmp eax, dword [ebp + 8]
jle 0x4f53f6
call fcn.00403c14
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4f540f
call fcn.00403c14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x12
je 0x4f542a
cmp dword [ebp - 0x14], 0xa4
je 0x4f542a
cmp dword [ebp - 0x14], 0xa5
jne 0x4f5430
mov byte [ebp - 0x22], 1
jmp 0x4f5438
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x4f53c5
cmp byte [ebp - 0x22], 0
je 0x4f544c
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004f99a4
jmp 0x4f548f
cmp dword [ebp - 0x18], 0
jle 0x4f548f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x37e], 0
jne 0x4f548f
mov byte [ebp - 0x23], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x37e], 1
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004f99a4
push 0xb4
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
cmp dword [ebp - 0x18], 0
jle 0x4f54e7
call sub.user32.dll_GetForegroundWindow
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 1
jne 0x4f54ae
push 9
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x18], 2
jne 0x4f54bf
push 5
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_ShowWindow
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_GetWindowRect
push 1
push 0
push 0
push 0xf423f
push 0xf423f
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [0x57438c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x1c]
call fcn.00560ac0
mov eax, dword [ebp - 0xc]
inc eax
sub eax, 1
jno 0x4f5504
call fcn.00403c1c
test eax, eax
jle 0x4f566b
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x4f5522
cmp eax, dword [ebp - 0xc]
jle 0x4f5527
call fcn.00403c14
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4]
xor edx, edx
call fcn.004057c0
je 0x4f566b
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004f97e8
push 4
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
mov eax, dword [ebp - 0x10]
test eax, eax
jl 0x4f5565
cmp eax, dword [ebp + 8]
jle 0x4f556a
call fcn.00403c14
mov edx, dword [ebp + 0xc]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4f5583
call fcn.00403c14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x3f
jbe 0x4f5593
call fcn.00403c14
mov edx, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x138], edx
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x381], 0
je 0x4f5600
cmp dword [ebp - 0x14], 0x23
je 0x4f55dd
cmp dword [ebp - 0x14], 0x24
je 0x4f55dd
cmp dword [ebp - 0x14], 0x25
je 0x4f55dd
cmp dword [ebp - 0x14], 0x27
je 0x4f55dd
cmp dword [ebp - 0x14], 0x26
je 0x4f55dd
cmp dword [ebp - 0x14], 0x28
je 0x4f55dd
cmp dword [ebp - 0x14], 0x21
je 0x4f55dd
cmp dword [ebp - 0x14], 0x22
jne 0x4f5600
push 0x90
call sub.user32.dll_GetKeyState
test al, 1
je 0x4f5600
push 0
xor ecx, ecx
mov edx, 0x90
mov eax, dword [ebp - 4]
call fcn.004f9aec
mov byte [ebp - 0x21], 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004f5218
test al, al
je 0x4f5623
push 0
mov ecx, 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004f9aec
jmp 0x4f5648
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004f9aec
mov eax, dword [ebp - 0x10]
cmp eax, 0x3f
jbe 0x4f563f
call fcn.00403c14
xor edx, edx
mov dword [ebp + eax*4 - 0x138], edx
cmp byte [ebp - 0x21], 0
je 0x4f565f
push 0
xor ecx, ecx
mov edx, 0x90
mov eax, dword [ebp - 4]
call fcn.004f9aec
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x4f5516
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, 1
jl 0x4f56ba
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x3f
jbe 0x4f5684
call fcn.00403c14
cmp dword [ebp + eax*4 - 0x138], 0
jle 0x4f56b1
push 0
mov eax, dword [ebp - 0x10]
cmp eax, 0x3f
jbe 0x4f569d
call fcn.00403c14
mov edx, dword [ebp + eax*4 - 0x138]
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.004f9aec
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jne 0x4f5677
push 4
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
cmp dword [ebp - 0x18], 0
jle 0x4f56ed
push 1
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_SetWindowPos
cmp dword [ebp - 0x18], 1
jne 0x4f56fe
push 6
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x18], 2
jne 0x4f570f
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebp - 0x20], 0
je 0x4f5724
mov eax, dword [0x57438c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
call fcn.00560ac0
cmp byte [ebp - 0x22], 0
je 0x4f5738
xor ecx, ecx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004f99a4
jmp 0x4f5754
cmp byte [ebp - 0x23], 0
je 0x4f5754
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004f99a4
mov eax, dword [ebp - 4]
mov byte [eax + 0x37e], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x37f], 1
push 4
call sub.kernel32.dll_Sleep_1
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5799
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x40112c]
call fcn.00405b8c
ret