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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov ebx, 0x4ee584
mov esi, 0x4ee58c
cmp dword [0x4d3774], 0
je 0x4a899e
cmp dword [0x4d3794], 0
je 0x4a899e
movzx eax, word [ebp + 8]
mov dword [esi], eax
mov edx, dword [ebp + 8]
shr edx, 0x10
and dx, 0xffff
movzx ecx, dx
mov dword [esi + 4], ecx
mov eax, dword [0x4d4294]
mov dword [ebx], eax
jmp 0x4a8843
push esi
lea esi, [eax + 0x5c8]
mov edi, 0x4ee594
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
inc dword [0x4ee59c]
add dword [0x4ee5a0], 2
mov eax, dword [ebx]
cmp dword [eax + 0x5d8], 0
je 0x4a8839
push dword [esi + 4]
push dword [esi]
push 0x4ee594
call sub.USER32.dll_PtInRect
test eax, eax
je 0x4a8839
cmp dword [ebp + 0xc], 1
jne 0x4a8682
push 0
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_GetSystemMenu
mov edi, eax
mov dword [0x4ee588], edi
test edi, edi
jne 0x4a85f9
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4a884d
cmp dword [0x4d3790], 0
je 0x4a860e
mov eax, dword [ebx]
mov edx, dword [eax + 0x5c8]
mov dword [esi], edx
jmp 0x4a861f
sub dword [esi], 0x4b
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x5c8]
cmp eax, dword [esi]
jle 0x4a861f
mov dword [esi], eax
cmp dword [0x4d3788], 1
jg 0x4a8635
mov edx, dword [ebx]
mov ecx, dword [edx + 0x5cc]
mov dword [esi + 4], ecx
jmp 0x4a8644
sub dword [esi + 4], 0x41
cmp dword [esi + 4], 0
jge 0x4a8644
xor eax, eax
mov dword [esi + 4], eax
push esi
mov edx, dword [0x4d3794]
push edx
call sub.USER32.dll_ClientToScreen
push 0
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
push 0
mov edx, dword [esi + 4]
push edx
mov ecx, dword [esi]
push ecx
push 0
mov eax, dword [0x4ee588]
push eax
call sub.USER32.dll_TrackPopupMenu
test eax, eax
jne 0x4a884d
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4a884d
cmp dword [0x4d42a8], 0
je 0x4a8732
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4a86b0
push 0
push 0
push 0x10
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_PostMessageA
jmp 0x4a884d
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4a86f1
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4a884d
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4a884d
push 1
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call fcn.004a8378
jmp 0x4a884d
mov eax, dword [ebx]
mov edx, dword [eax]
cmp edx, dword [0x4d42a8]
jne 0x4a8794
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4a8794
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4a8794
push 1
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call fcn.004a8378
jmp 0x4a884d
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4a8753
push 0
push 0
push 0x10
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_PostMessageA
jmp 0x4a884d
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4a8794
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4a884d
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4a884d
push 1
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call fcn.004a8378
jmp 0x4a884d
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4a87b0
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_IsWindowVisible
test eax, eax
jne 0x4a87fa
push 4
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_ShowWindow
cmp dword [0x4d128c], 0
je 0x4a87dc
push 0
push 0x7a
push 0x111
mov edx, dword [0x4d429c]
push edx
call sub.USER32.dll_PostMessageA
jmp 0x4a87fa
cmp dword [0x4d1290], 0
je 0x4a87fa
push 0
push 0x7b
push 0x111
mov ecx, dword [0x4d429c]
push ecx
call sub.USER32.dll_PostMessageA
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_BringWindowToTop
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call sub.USER32.dll_SetActiveWindow
mov edx, dword [ebx]
mov ecx, dword [edx]
push ecx
call sub.USER32.dll_SetForegroundWindow
mov eax, dword [ebx]
mov edx, dword [eax]
push edx
call sub.USER32.dll_UpdateWindow
mov ecx, dword [ebx]
mov eax, dword [ecx]
push eax
call fcn.004a8254
mov edx, dword [ebx]
push edx
call fcn.004a78e4
jmp 0x4a899e
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x744]
mov dword [ebx], eax
mov eax, dword [ebx]
test eax, eax
jne 0x4a8584
cmp dword [ebx], 0
jne 0x4a899e
cmp dword [ebp + 0xc], 0
jne 0x4a898f
mov edx, dword [0x4d42a0]
push edx
call sub.USER32.dll_UpdateWindow
mov ecx, dword [0x4d429c]
push ecx
call sub.USER32.dll_UpdateWindow
call fcn.004a75bc
xor eax, eax
mov dword [0x4d37a0], eax
mov dword [0x4d379c], 1
push 1
push esi
mov edx, dword [0x4d429c]
push edx
mov ecx, dword [0x4d3794]
push ecx
call sub.USER32.dll_MapWindowPoints
jmp 0x4a8963
push 0x209
push 0x100
mov eax, dword [0x4d429c]
push eax
lea edx, [ebp - 0x1c]
push edx
call sub.USER32.dll_GetMessageA
test eax, eax
je 0x4a8963
cmp dword [ebp - 0x18], 0x200
jne 0x4a8905
inc dword [0x4d37a0]
cmp dword [0x4d37a0], 1
jne 0x4a88f8
push 0
movzx ecx, word [esi]
movzx eax, word [esi + 4]
shl eax, 0x10
or ecx, eax
push ecx
call fcn.004a648c
jmp 0x4a8963
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.004a648c
jmp 0x4a8963
cmp dword [ebp - 0x18], 0x202
jne 0x4a892d
mov eax, dword [0x4d37a0]
test eax, eax
jle 0x4a8923
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.004a648c
jmp 0x4a8963
xor ecx, ecx
mov dword [0x4d379c], ecx
jmp 0x4a8963
mov eax, dword [ebp - 0x18]
cmp eax, 0x100
jb 0x4a8963
cmp eax, 0x108
ja 0x4a8963
mov eax, dword [0x4d37a0]
test eax, eax
jle 0x4a895c
push eax
movzx edx, word [esi]
movzx ecx, word [esi + 4]
shl ecx, 0x10
or edx, ecx
push edx
call fcn.004a648c
jmp 0x4a8963
xor eax, eax
mov dword [0x4d379c], eax
cmp dword [0x4d379c], 0
jne 0x4a88a9
mov edx, dword [0x4d42a0]
push edx
call sub.USER32.dll_UpdateWindow
mov ecx, dword [0x4d429c]
push ecx
call sub.USER32.dll_UpdateWindow
call fcn.004a75bc
jmp 0x4a899e
cmp dword [ebp + 0xc], 1
jne 0x4a899e
mov eax, dword [ebp + 8]
push eax
call fcn.00473f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8