Function at 0x10053fd0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
push ecx
pop ecx
mov bh, bh
mov dl, dl
xor esi, esi
mov cl, cl
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x58]
jne 0x10054001
cmp ecx, 0xffffffff
jne 0x10054001
lea eax, [esp + 0x18]
push eax
call fcn.10052c70
push ebx
pop ebx
jmp 0x1005400d
mov dword [esp + 0x18], eax
mov bh, bh
mov dword [esp + 0x1c], ecx
mov ebx, ebx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
nop
add ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov ah, ah
add ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov ebx, ebx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov bh, bh
mov ebp, dword [esp + 0x1c]
mov dl, dl
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.100f9660
fst qword [esp + 0x28]
mov dl, dl
fld qword [0x1015a890]
mov edi, dword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x100541c9
mov edx, ebx
sub edx, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
fdiv st(2)
fstp qword [esp + 0x38]
mov ah, ah
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]
mov edi, edi
mov dword [esp + 0x48], 0x5a
nop
fcom st(1)
fnstsw ax
test ah, 5
jp 0x100541c9
fld qword [esp + 0x30]
fmul st(1)
fiadd dword [esp + 0x18]
call fcn.100f8b90
mov dword [esp + 0x10], eax
mov eax, eax
fmul qword [esp + 0x38]
fiadd dword [esp + 0x1c]
call fcn.100f8b90
mov dword [esp + 0x14], eax
mov eax, eax
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
nop
cmp dword [esp + 0x50], 0
je 0x1005410f
mov dword [esp + 0x4c], 4
nop
test eax, eax
mov byte [esi + edi], 8
jne 0x1005411b
test ebx, ebx
je 0x1005416d
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
fstp st(0)
push 1
call ebp
test ax, ax
je 0x10054131
or byte [esi + edi], 1
nop
push 2
call ebp
test ax, ax
je 0x10054140
or byte [esi + edi], 2
mov ecx, ecx
push 4
call ebp
test ax, ax
je 0x1005414e
or byte [esi + edi], 4
nop
cmp dword [esp + 0x54], 0
jge 0x1005415b
or byte [esi + edi], 0x10
mov eax, eax
test ebx, ebx
fld qword [esp + 0x28]
mov eax, dword [esp + 0x54]
jle 0x1005416d
or byte [esi + edi], 0x20
push ebx
pop ebx
mov byte [esi + edi + 1], al
mov edi, edi
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1005418b
mov byte [esi + edi + 3], 0
push ecx
pop ecx
jmp 0x10054197
cmp eax, 1
jne 0x10054197
mov byte [esi + edi + 3], 0
push ebx
pop ebx
add esi, dword [esp + 0x4c]
push eax
pop eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
mov ch, ch
mov ebp, dword [esp + 0x14]
push eax
pop eax
add dword [esp + 0x48], 0x5a
mov esi, esi
fild dword [esp + 0x48]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x100540be
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 0x100541e5
mov edx, ebx
sub edx, ebp
je 0x10054288
sub ebx, ebp
mov dword [esp + 0x48], 3
nop
cmp dword [esp + 0x50], 0
je 0x10054200
mov dword [esp + 0x48], 4
nop
test eax, eax
mov byte [esi + edi], 8
jne 0x1005420c
test ebx, ebx
je 0x10054258
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebp
test ax, ax
je 0x10054220
or byte [esi + edi], 1
nop
push 2
call ebp
test ax, ax
je 0x1005422f
or byte [esi + edi], 2
mov ecx, ecx
push 4
call ebp
test ax, ax
je 0x1005423d
or byte [esi + edi], 4
nop
cmp dword [esp + 0x54], 0
jge 0x1005424a
or byte [esi + edi], 0x10
mov eax, eax
test ebx, ebx
mov eax, dword [esp + 0x54]
jle 0x10054258
or byte [esi + edi], 0x20
push ebx
pop ebx
mov byte [esi + edi + 1], al
mov edi, edi
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x10054276
mov byte [esi + edi + 3], 0
push ecx
pop ecx
jmp 0x10054282
cmp eax, 1
jne 0x10054282
mov byte [esi + edi + 3], 0
push ebx
pop ebx
add esi, dword [esp + 0x48]
mov edi, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret