Function at 0x1004f860
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov ebp, ebp
mov dl, dl
mov ch, ch
xor esi, esi
mov ah, ah
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x58]
jne 0x1004f891
cmp ecx, 0xffffffff
jne 0x1004f891
lea eax, [esp + 0x18]
push eax
call fcn.1004d910
push eax
pop eax
jmp 0x1004f8a0
mov dword [esp + 0x18], eax
test eax, 0x6130
mov dword [esp + 0x1c], ecx
push edx
pop edx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
add ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
push ebx
pop ebx
add ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
test eax, 0x35cb
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov bl, bl
mov ebp, dword [esp + 0x1c]
push edx
pop edx
sub ecx, dword [esp + 0x18]
mov eax, ebx
sub eax, dword [esp + 0x1c]
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
call fcn.100f8b40
fst qword [esp + 0x28]
test esi, esi
fld qword [0x101597f8]
mov edi, dword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1004fa6a
mov edx, ebx
sub edx, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
fdiv st(2)
fstp qword [esp + 0x38]
xchg ebx, eax
xchg ebx, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fdiv st(2)
fstp qword [esp + 0x30]
xchg ebx, eax
xchg ebx, eax
mov dword [esp + 0x48], 0x5a
push edx
pop edx
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1004fa6a
fld qword [esp + 0x30]
fmul st(1)
fiadd dword [esp + 0x18]
call fcn.100f8070
mov dword [esp + 0x10], eax
test eax, 0x2f08
fmul qword [esp + 0x38]
fiadd dword [esp + 0x1c]
call fcn.100f8070
mov dword [esp + 0x14], eax
test al, al
mov ebx, eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x54]
sub ebx, ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], 3
test ecx, ecx
cmp dword [esp + 0x50], 0
je 0x1004f9ac
mov dword [esp + 0x4c], 4
test edx, edx
test eax, eax
mov byte [esi + edi], 8
jne 0x1004f9b8
test ebx, ebx
je 0x1004fa0c
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
fstp st(0)
push 1
call ebp
test ax, ax
je 0x1004f9cf
or byte [esi + edi], 1
mov ebp, ebp
push 2
call ebp
test ax, ax
je 0x1004f9de
or byte [esi + edi], 2
test cl, cl
push 4
call ebp
test ax, ax
je 0x1004f9ed
or byte [esi + edi], 4
mov ah, ah
cmp dword [esp + 0x54], 0
jge 0x1004f9fa
or byte [esi + edi], 0x10
test al, al
test ebx, ebx
fld qword [esp + 0x28]
mov eax, dword [esp + 0x54]
jle 0x1004fa0c
or byte [esi + edi], 0x20
mov edx, edx
mov byte [esi + edi + 1], al
mov ah, ah
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1004fa29
mov byte [esi + edi + 3], 0
nop
jmp 0x1004fa35
cmp eax, 1
jne 0x1004fa35
mov byte [esi + edi + 3], 0
test cl, cl
add esi, dword [esp + 0x4c]
mov eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
test esi, esi
mov ebp, dword [esp + 0x14]
mov bh, bh
add dword [esp + 0x48], 0x5a
test eax, 0x5e6d
fild dword [esp + 0x48]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1004f956
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
fstp st(0)
sub eax, dword [esp + 0x54]
fstp st(0)
mov dword [esp + 0x54], eax
jne 0x1004fa86
mov edx, ebx
sub edx, ebp
je 0x1004fb2c
sub ebx, ebp
mov dword [esp + 0x48], 3
test ecx, ecx
cmp dword [esp + 0x50], 0
je 0x1004faa3
mov dword [esp + 0x48], 4
test edx, edx
test eax, eax
mov byte [esi + edi], 8
jne 0x1004faaf
test ebx, ebx
je 0x1004fafd
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebp
test ax, ax
je 0x1004fac4
or byte [esi + edi], 1
mov ebp, ebp
push 2
call ebp
test ax, ax
je 0x1004fad3
or byte [esi + edi], 2
test cl, cl
push 4
call ebp
test ax, ax
je 0x1004fae2
or byte [esi + edi], 4
mov ah, ah
cmp dword [esp + 0x54], 0
jge 0x1004faef
or byte [esi + edi], 0x10
test al, al
test ebx, ebx
mov eax, dword [esp + 0x54]
jle 0x1004fafd
or byte [esi + edi], 0x20
mov edx, edx
mov byte [esi + edi + 1], al
mov ah, ah
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1004fb1a
mov byte [esi + edi + 3], 0
nop
jmp 0x1004fb26
cmp eax, 1
jne 0x1004fb26
mov byte [esi + edi + 3], 0
test cl, cl
add esi, dword [esp + 0x48]
push edx
pop edx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret