Function at 0x10004af0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1005b264]
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x1005b3f0]
push esi
push edi
test eax, eax
jne 0x10004b18
mov dword [0x1005b2e4], eax
jmp 0x10004b99
cmp eax, 1
jne 0x10004b29
mov dword [0x1005b2e4], 0x14
jmp 0x10004b99
cmp eax, 2
jne 0x10004b35
mov dword [0x1005b2e4], eax
jmp 0x10004b99
cmp eax, 3
jne 0x10004b46
mov dword [0x1005b2e4], 1
jmp 0x10004b99
cmp eax, 4
jne 0x10004b57
mov dword [0x1005b2e4], 0x11
jmp 0x10004b99
cmp eax, 5
jne 0x10004b68
mov dword [0x1005b2e4], 0x12
jmp 0x10004b99
cmp eax, 6
jne 0x10004b79
mov dword [0x1005b2e4], 0x20
jmp 0x10004b99
cmp eax, 7
jne 0x10004b8a
mov dword [0x1005b2e4], 0x58
jmp 0x10004b99
cmp eax, 8
jne 0x10004b99
mov dword [0x1005b2e4], 0x43
mov eax, dword [0x1005b294]
test eax, eax
je 0x10004f08
mov ecx, dword [0x1005b3f4]
sub ecx, 0
je 0x10004bc3
dec ecx
je 0x10004bbc
dec ecx
jne 0x10004bca
lea esi, [ecx + 5]
jmp 0x10004bce
mov esi, 6
jmp 0x10004bce
mov esi, 7
jmp 0x10004bce
mov esi, dword [esp + 0x20]
dec eax
je 0x10004bdc
dec eax
jne 0x10004be9
push esi
call fcn.10003f60
jmp 0x10004be2
push esi
call fcn.10004190
mov dword [esp + 0x14], eax
add esp, 4
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x10004f08
mov ecx, dword [0x1005a9ac]
mov edx, dword [ecx]
mov eax, dword [0x1005b244]
mov ecx, dword [edx + eax]
push ecx
mov ecx, esi
lea edx, [esp + 0x30]
call fcn.10002f20
add esp, 4
push edi
mov ecx, esi
lea edx, [esp + 0x30]
call fcn.10002f20
add esp, 4
test al, al
je 0x10004f08
mov edx, dword [0x1005b1d8]
mov ecx, dword [edx]
mov edx, dword [esp + 0x2c]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
push ecx
lea esi, [esp + 0x3c]
mov dword [eax + 8], edx
call fcn.10003020
test al, al
je 0x10004f08
fld dword [esp + 0x2c]
call fcn.10039330
fild dword [0x1005b398]
mov edi, eax
mov eax, dword [0x1005b398]
mov dword [esp + 0x18], edi
test eax, eax
jns 0x10004c83
fadd dword [0x1004ac1c]
fld qword [0x1004ac10]
fmul st(1), st(0)
fild dword [0x10056e9c]
fmul st(1)
fild dword [esp + 0x18]
fsub st(3)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x30]
call fcn.10039330
fild dword [0x1005b39c]
mov ecx, dword [0x1005b39c]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ecx, ecx
jns 0x10004ccc
fadd dword [0x1004ac1c]
fmulp st(2)
fild dword [esp + 0x14]
fsub st(2)
fstp dword [esp + 0x14]
fdivr dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fld st(0)
call fcn.10039330
cmp eax, 0xffffff07
jle 0x10004f02
fld dword [esp + 0x14]
fld st(0)
call fcn.10039330
cmp eax, 0xffffff42
jle 0x10004f0f
fxch st(3)
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10004f04
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x10004f08
mov edx, dword [esp + 0x10]
push edx
call fcn.10003140
add esp, 4
test al, al
je 0x10004f08
cmp dword [0x1005b3f0], 0
mov esi, dword [sym.imp.USER32.dll_mouse_event]
je 0x10004dd1
mov eax, dword [0x1005b2e4]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x10004dc8
fld dword [esp + 0x14]
push 0
fnstcw word [esp + 0x14]
push 0
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
push edx
fldcw word [esp + 0x1c]
fld dword [esp + 0x24]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x2c]
fistp qword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
push eax
push 1
fldcw word [esp + 0x24]
call esi
cmp dword [0x1005b3f0], 0
jne 0x10004e27
fld dword [esp + 0x14]
push 0
fnstcw word [esp + 0x14]
push 0
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov ecx, dword [esp + 0x28]
push ecx
fldcw word [esp + 0x1c]
fld dword [esp + 0x24]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x2c], eax
fldcw word [esp + 0x2c]
fistp qword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
push edx
push 1
fldcw word [esp + 0x24]
call esi
cmp dword [0x1005b3f8], 0
je 0x10004f08
fld dword [esp + 0x2c]
push 0xff00ff00
fsub qword [0x1004acc8]
push 2
call fcn.10039330
mov ecx, dword [esp + 0x24]
push eax
mov esi, 7
mov edx, ebx
call fcn.100033b0
fld dword [esp + 0x38]
fadd qword [0x1004ac88]
add esp, 0xc
push 0xff00ff00
push 2
call fcn.10039330
mov ecx, dword [esp + 0x24]
push eax
mov edx, ebx
call fcn.100033b0
fld dword [esp + 0x3c]
fsub qword [0x1004acc8]
add esp, 0xc
push 0xff00ff00
push esi
call fcn.10039330
mov ebx, dword [esp + 0x24]
push edi
mov ecx, ebx
mov esi, 2
mov edx, eax
call fcn.100033b0
fld dword [esp + 0x3c]
fadd qword [0x1004ac88]
add esp, 0xc
push 0xff00ff00
push 7
call fcn.10039330
push edi
mov ecx, ebx
mov edx, eax
call fcn.100033b0
fld dword [esp + 0x3c]
fadd qword [0x1004ac68]
add esp, 0xc
push str.Target
push 0xfff50000
call fcn.10039330
mov esi, dword [0x1005b3dc]
push eax
mov ecx, edi
call fcn.10003710
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(1)
fstp st(0)
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(2)
pop edi
fstp st(0)
pop esi
fstp st(1)
pop ebx
fstp st(0)
mov esp, ebp
pop ebp
ret