Function at 0x1005b620
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov al, al
mov ebx, ebx
push ecx
pop ecx
xor esi, esi
mov bl, bl
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x58]
jne 0x1005b651
cmp ecx, 0xffffffff
jne 0x1005b651
lea eax, [esp + 0x18]
push eax
call fcn.100596b0
mov edi, edi
jmp 0x1005b65d
mov dword [esp + 0x18], eax
mov esi, esi
mov dword [esp + 0x1c], ecx
mov eax, eax
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push ecx
pop ecx
add ecx, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov esi, esi
add ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov ebp, ebp
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
push eax
pop eax
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.10112c40
fst qword [esp + 0x28]
mov dl, dl
fld qword [0x101799c0]
mov edi, dword [esp + 0x44]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1005b81e
mov edx, ebx
sub edx, dword [esp + 0x1c]
mov dword [esp + 0x48], edx
fild dword [esp + 0x48]
fdiv st(2)
fstp qword [esp + 0x38]
push edx
pop edx
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 eax, eax
mov dword [esp + 0x48], 0x5a
mov eax, eax
fcom st(1)
fnstsw ax
test ah, 5
jp 0x1005b81e
fld qword [esp + 0x30]
fmul st(1)
fiadd dword [esp + 0x18]
call fcn.10112170
mov dword [esp + 0x10], eax
nop
fmul qword [esp + 0x38]
fiadd dword [esp + 0x1c]
call fcn.10112170
mov dword [esp + 0x14], eax
mov ebx, ebx
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
mov dh, dh
cmp dword [esp + 0x50], 0
je 0x1005b762
mov dword [esp + 0x4c], 4
mov ecx, ecx
test eax, eax
mov byte [esi + edi], 8
jne 0x1005b76e
test ebx, ebx
je 0x1005b7c2
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
fstp st(0)
push 1
call ebp
test ax, ax
je 0x1005b785
or byte [esi + edi], 1
mov dl, dl
push 2
call ebp
test ax, ax
je 0x1005b794
or byte [esi + edi], 2
mov bl, bl
push 4
call ebp
test ax, ax
je 0x1005b7a3
or byte [esi + edi], 4
push edx
pop edx
cmp dword [esp + 0x54], 0
jge 0x1005b7b0
or byte [esi + edi], 0x10
mov ch, ch
test ebx, ebx
fld qword [esp + 0x28]
mov eax, dword [esp + 0x54]
jle 0x1005b7c2
or byte [esi + edi], 0x20
mov ecx, ecx
mov byte [esi + edi + 1], al
mov edx, edx
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1005b7e0
mov byte [esi + edi + 3], 0
mov ecx, ecx
jmp 0x1005b7ec
cmp eax, 1
jne 0x1005b7ec
mov byte [esi + edi + 3], 0
mov edx, edx
add esi, dword [esp + 0x4c]
xchg ebx, eax
xchg ebx, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
mov edi, edi
mov ebp, dword [esp + 0x14]
mov ch, ch
add dword [esp + 0x48], 0x5a
mov dl, dl
fild dword [esp + 0x48]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x1005b710
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 0x1005b83a
mov edx, ebx
sub edx, ebp
je 0x1005b8e1
sub ebx, ebp
mov dword [esp + 0x48], 3
mov dh, dh
cmp dword [esp + 0x50], 0
je 0x1005b857
mov dword [esp + 0x48], 4
mov ecx, ecx
test eax, eax
mov byte [esi + edi], 8
jne 0x1005b863
test ebx, ebx
je 0x1005b8b1
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call ebp
test ax, ax
je 0x1005b878
or byte [esi + edi], 1
mov dl, dl
push 2
call ebp
test ax, ax
je 0x1005b887
or byte [esi + edi], 2
mov bl, bl
push 4
call ebp
test ax, ax
je 0x1005b896
or byte [esi + edi], 4
push edx
pop edx
cmp dword [esp + 0x54], 0
jge 0x1005b8a3
or byte [esi + edi], 0x10
mov ch, ch
test ebx, ebx
mov eax, dword [esp + 0x54]
jle 0x1005b8b1
or byte [esi + edi], 0x20
mov ecx, ecx
mov byte [esi + edi + 1], al
mov edx, edx
mov eax, dword [esp + 0x50]
neg bl
cmp eax, 2
mov byte [esi + edi + 2], bl
jne 0x1005b8cf
mov byte [esi + edi + 3], 0
mov ecx, ecx
jmp 0x1005b8db
cmp eax, 1
jne 0x1005b8db
mov byte [esi + edi + 3], 0
mov edx, edx
add esi, dword [esp + 0x48]
mov al, al
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret