Function at 0x4da7d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x2c]
mov ebx, dword [esi + ebp*4 + 0x30c]
cmp edi, ebx
jge 0x4dab70
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + ebp*4 + 0x32c]
cmp eax, ecx
jge 0x4dab70
mov ecx, dword [esi + ebp*4 + 0x34c]
mov eax, ecx
cdq
sub eax, edx
mov edx, eax
mov eax, ecx
imul eax, edi
mov edi, dword [esi + 0x134]
sar edx, 1
sub eax, edi
mov dword [esp + 0x28], edx
add eax, edx
cdq
mov edi, eax
mov eax, ecx
imul eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x138]
xor edi, edx
sub edi, edx
mov edx, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esi + 0xed0]
add eax, edx
cdq
xor eax, edx
sub eax, edx
cmp edi, ecx
jl 0x4da854
lea edi, [ecx - 1]
mov edx, dword [esi + 0xed4]
cmp eax, edx
jl 0x4da861
lea eax, [edx - 1]
imul ecx, eax
add ecx, edi
mov edi, dword [esp + 0x30]
mov edx, dword [esi + 0x374]
imul ebx, edi
fld dword [edx + ecx*4]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x370]
add ebx, ecx
mov ecx, dword [eax + ebp*4]
mov al, byte [0x5f8978]
test al, 1
fld dword [ecx + ebx*4]
jne 0x4da8ae
fld dword [0x58eb20]
or al, 1
mov byte [0x5f8978], al
fdiv dword [esi + 0xf3c]
fstp dword [0x5f897c]
fld dword [esp + 0x28]
fadd dword [0x594570]
xor eax, eax
fdivr st(1)
fstp dword [esp + 0x10]
fstp st(0)
fld dword [eax + 0x5cec10]
fmul dword [esi + 0x184]
add eax, 4
cmp eax, 0xc
fstp dword [esp + eax + 0x14]
jl 0x4da8c2
push 0x76
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
jne 0x4daaeb
cmp ebp, 2
jne 0x4da914
mov ecx, dword [esi + 0xf44]
mov ebx, dword [esi + 0xf40]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
jmp 0x4da947
cmp ebp, 1
jne 0x4daa53
mov ecx, dword [esi + 0xf44]
mov ebx, dword [esi + 0xf40]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push eax
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
cdq
sub eax, edx
mov ecx, esi
sar eax, 1
add eax, ebx
push eax
call fcn.004e16b0
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x4daa7c
mov ecx, dword [esp + 0x2c]
lea eax, [edi + edi]
lea edi, [ebp - 1]
push eax
lea ebx, [ecx + ecx]
mov ecx, esi
push ebx
push edi
call fcn.004da7d0
mov edx, dword [esp + 0x30]
lea ecx, [ebx + 1]
mov dword [esp + 0x10], ecx
lea eax, [edx + edx]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004da7d0
mov eax, dword [esp + 0x30]
mov ecx, esi
add eax, eax
inc eax
push eax
push ebx
push edi
mov dword [esp + 0x34], eax
call fcn.004da7d0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004da7d0
mov ecx, dword [esi + edi*4 + 0x30c]
mov eax, dword [esi + 0x36c]
imul ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [eax + edi*4]
cmp byte [edx + ecx*2], 2
jne 0x4daac9
mov ecx, dword [esi + edi*4 + 0x30c]
mov edx, dword [esp + 0x2c]
imul ecx, dword [esp + 0x30]
add ecx, edx
mov edx, dword [eax + edi*4]
cmp byte [edx + ecx*2 + 1], 2
jne 0x4daac9
mov edx, dword [esi + edi*4 + 0x30c]
mov ecx, dword [esp + 0x28]
imul edx, ecx
add edx, dword [eax + edi*4]
cmp byte [edx + ebx], 2
jne 0x4daac9
mov eax, dword [esp + 0x10]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004e1700
cmp al, 2
jne 0x4daac9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
push 0
push ecx
push edx
push ebp
mov ecx, esi
call fcn.004e03c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret 0xc
test ebp, ebp
jne 0x4daa7c
mov eax, dword [esi + 0xf44]
mov ecx, esi
cdq
sub eax, edx
mov edx, dword [esi + 0xf40]
sar eax, 1
push eax
push edx
call fcn.004e16b0
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x4daaf3
fld dword [esp + 0x18]
fdiv dword [0x5f897c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x4daaeb
fld dword [esp + 0x1c]
fdiv dword [0x5f897c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x4daaf3
fld dword [esp + 0x20]
fdiv dword [0x5f897c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x4daac2
mov eax, 1
jmp 0x4daaf5
mov eax, 2
jmp 0x4daaf5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push 1
push 0xffffffffffffffff
push eax
push ecx
push ebp
mov ecx, esi
call fcn.004e03c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret 0xc
test ebp, ebp
jne 0x4da965
xor eax, eax
mov ecx, dword [esi + ebp*4 + 0x30c]
mov edx, dword [esi + 0x36c]
imul ecx, edi
mov edx, dword [edx + ebp*4]
add edx, ecx
mov ecx, dword [esp + 0x2c]
test ebp, ebp
mov byte [edx + ecx], al
jle 0x4dab70
cmp al, 0xff
je 0x4dab70
add al, 2
dec ebp
mov byte [esp + 0x10], al
lea eax, [ecx + ecx]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], eax
jmp 0x4dab39
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov ebp, 2
lea ebx, [ecx + edi*2]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 1
push edx
push ebx
push edi
push eax
mov ecx, esi
call fcn.004e03c0
inc edi
dec ebp
jne 0x4dab49
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, 2
mov dword [esp + 0x2c], eax
jl 0x4dab35
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x14
ret 0xc