Function at 0x49c5a0
Capabilities:
Create thread
Hide graphical window
Log keystrokes via polling
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8a8b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4ef398
lea ecx, [ebp - 0x2c]
call fcn.0049ccd0
mov dword [ebp - 4], 0
push 0x4ef364
lea ecx, [ebp - 0x48]
call fcn.0049ccd0
mov byte [ebp - 4], 1
mov al, byte [ebp + 0x14]
mov byte [0x4fc4f4], al
mov cl, byte [ebp + 0x10]
mov byte [0x4fc4f5], cl
mov edx, dword [ebp + 8]
mov dword [0x4fc4dc], edx
mov eax, dword [ebp + 0xc]
mov dword [0x4fc4e0], eax
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
je 0x49c6be
movzx edx, byte [ebp + 0x14]
test edx, edx
jne 0x49c6be
mov byte [0x4fc521], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xfa
mov dword [ebp - 0x158], eax
push 0x4fc4f8
push 0
push 0
push 0x49cc00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x4fc521]
test eax, eax
je 0x49c684
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 0x158]
jae 0x49c684
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49c661
mov dword [ebp - 0x188], 1
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.004900e0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004900e0
mov eax, dword [ebp - 0x188]
jmp 0x49c98f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x4fc4f8], eax
movzx ecx, byte [0x4fc520]
test ecx, ecx
jne 0x49c7c4
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0x49c9b0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov edx, dword [0x4fc4a8]
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], 0
movzx eax, byte [0x4fc4f4]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 0x7f02
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x49c77c
cmp dword [ebp - 0x30], 8
jb 0x49c765
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x278], edx
jmp 0x49c76e
lea eax, [ebp - 0x44]
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], ecx
jmp 0x49c7a2
cmp dword [ebp - 0x14], 8
jb 0x49c78d
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x280], edx
jmp 0x49c796
lea eax, [ebp - 0x28]
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x27c], ecx
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x15c], edx
lea eax, [ebp - 0x180]
push eax
call fcn.004a56e0
add esp, 4
mov byte [0x4fc520], 1
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x49c802
mov dword [ebp - 0x184], 0
jmp 0x49c7e7
mov edx, dword [ebp - 0x184]
add edx, 1
mov dword [ebp - 0x184], edx
cmp dword [ebp - 0x184], 0x100
jge 0x49c802
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x49c7d8
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [0x4fc4dc]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x150], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [0x4fc4e0]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x154], eax
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x49c847
lea edx, [ebp - 0x48]
mov dword [ebp - 0x284], edx
jmp 0x49c850
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x284], eax
mov ecx, dword [ebp - 0x284]
mov dword [ebp - 0x1ec], ecx
mov edx, dword [ebp - 0x1ec]
push edx
lea ecx, [ebp - 0x1e8]
call fcn.00495c10
mov byte [ebp - 4], 2
push 0
mov eax, dword [0x4fc4a8]
push eax
push 0
push 0
mov ecx, dword [0x4fc4e0]
push ecx
mov edx, dword [0x4fc4dc]
push edx
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
movzx edx, byte [0x4fc4f4]
neg edx
sbb edx, edx
and edx, 0xf8000000
add edx, 0x8000000
or edx, 0x80000000
push edx
push 0x4fc8f0
lea eax, [ebp - 0x1e8]
push eax
movzx ecx, byte [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xffffff88
add ecx, 0x80
push ecx
call fcn.004a58a0
add esp, 0x30
mov dword [0x4fc4e8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1e8]
call fcn.0048f870
push 4
mov edx, dword [0x4fc4e8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4fc4e8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x49c928
push 0
push 0x64
push 2
mov edx, dword [0x4fc4e8]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x4fc4e8]
push eax
push 0x4ef0b0
lea ecx, [ebp - 0x14c]
push ecx
call fcn.004b6e63
add esp, 0xc
lea edx, [ebp - 0x14c]
push edx
push 0x4ef354
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov byte [0x4fc521], 0
mov eax, dword [0x4fc4e8]
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.004900e0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004900e0
mov eax, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4695
mov esp, ebp
pop ebp
ret