Function at 0x5ad9a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x3dc]
cmp eax, 2
je 0x5ae035
cmp eax, 3
je 0x5ae035
cmp eax, 4
je 0x5ae035
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
mov ecx, ebx
call fcn.005abe20
test al, al
je 0x5ae035
mov eax, dword [0x839e44]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor esi, esi
cmp eax, esi
je 0x5adb5f
push 0x12
call edi
mov ecx, dword [0x79ce64]
xor edx, edx
mov dl, ah
test dl, dl
mov edx, dword [0x79ce50]
je 0x5adb3d
mov eax, dword [0x79ce54]
cmp ecx, esi
je 0x5ada28
mov eax, edx
cmp eax, 1
jne 0x5adb3d
cmp dword [0x839e3c], esi
jne 0x5adb2b
mov ebx, dword [ebx + 0xb4]
mov eax, dword [0x839db4]
push eax
mov ecx, ebx
call fcn.00526d60
push 0x10
mov esi, eax
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x5adaba
test esi, esi
je 0x5ae035
mov eax, dword [esi + 0x2b0]
test eax, eax
je 0x5ae035
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5ae035
mov edx, dword [ebp - 0xc]
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov edx, dword [esi]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x24], 1
call dword [edx + 0xb0]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [0x839e30], edx
cmp esi, ecx
mov dword [0x839e34], ebx
mov dword [0x839e2c], ecx
mov dword [0x839e40], ecx
je 0x5adb15
mov eax, dword [esi + 0x2b0]
cmp eax, ecx
je 0x5adb15
cmp dword [eax + 4], ecx
je 0x5adb15
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
push eax
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], edx
mov edx, dword [esi]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ebx
call dword [edx + 0xa8]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [0x839e38], 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [0x839e3c], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x839e44], esi
je 0x5adb5f
mov eax, dword [0x79ce54]
cmp ecx, esi
je 0x5adb50
mov eax, edx
cmp eax, 1
jne 0x5adb5f
mov ecx, 0x8365d0
call fcn.006caaa0
cmp dword [0x839ee8], esi
je 0x5add80
push 0x12
call edi
mov edx, dword [0x79ce50]
xor ecx, ecx
mov cl, ah
test cl, cl
mov ecx, dword [0x79ce64]
je 0x5adca9
cmp ecx, esi
mov eax, edx
je 0x5adb92
mov eax, dword [0x79ce54]
cmp eax, 1
jne 0x5adca9
cmp dword [0x839ee0], esi
jne 0x5adc97
mov ebx, dword [ebx + 0xb4]
mov edx, dword [0x839e5c]
push edx
mov ecx, ebx
call fcn.00526d60
push 0x10
mov esi, eax
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x5adc25
test esi, esi
je 0x5ae035
mov eax, dword [esi + 0x2b4]
test eax, eax
je 0x5ae035
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5ae035
mov edx, dword [ebp - 0xc]
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov edx, dword [esi]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push 1
push eax
mov ecx, esi
mov dword [ebp - 0x24], 1
call dword [edx + 0xb0]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
xor ecx, ecx
mov dword [0x839ed0], edx
cmp esi, ecx
mov dword [0x839ed4], ebx
mov dword [0x839ecc], ecx
mov dword [0x839ee4], ecx
je 0x5adc81
mov eax, dword [esi + 0x2b4]
cmp eax, ecx
je 0x5adc81
cmp dword [eax + 4], ecx
je 0x5adc81
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
push 1
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], edx
mov edx, dword [esi]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ebx
call dword [edx + 0xa8]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [0x839ed8], 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [0x839ee0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x839ee8], esi
je 0x5add80
cmp ecx, esi
mov eax, edx
je 0x5adcc0
mov eax, dword [0x79ce54]
cmp eax, 1
jne 0x5add80
mov ecx, 0x8365d0
call fcn.006cab00
cmp dword [ebx + 0x3dc], 1
jne 0x5addf9
mov ecx, dword [ebx + 0x3e0]
push ecx
mov ecx, 0x8365d0
call fcn.006f4ba0
test eax, eax
je 0x5add80
mov edx, dword [0x839e5c]
mov ecx, dword [ebx + 0xb4]
push edx
call fcn.00526d60
mov edx, eax
cmp edx, esi
je 0x5add80
mov eax, dword [edx + 0x2b4]
cmp eax, esi
je 0x5add80
cmp dword [eax + 4], esi
je 0x5add80
mov eax, dword [edx + 0x5c]
cmp eax, 1
je 0x5add31
cmp eax, esi
je 0x5add31
cmp eax, 4
jne 0x5add80
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x24]
push 1
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x3e0]
mov eax, dword [ebx + 0x3e8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [edx]
push ecx
mov ecx, edx
mov dword [ebp - 0x24], 8
call dword [eax + 0xa8]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x3dc], 1
jne 0x5addf9
mov eax, dword [0x79ce64]
cmp eax, esi
mov eax, dword [0x79ce50]
je 0x5add9c
mov eax, dword [0x79ce54]
cmp eax, 1
jne 0x5addf9
mov esi, dword [ebp + 8]
test esi, esi
je 0x5addad
cmp esi, 2
jne 0x5addfc
mov edx, dword [ebx + 0xb4]
mov esi, 1
mov dword [ebp + 8], esi
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x5addfc
mov edx, dword [ebp - 8]
mov eax, dword [ecx]
push edx
mov edx, dword [ebp - 0xc]
push edx
mov edx, dword [ebx + 0x3e0]
push edx
push 0x41
push 0
call dword [eax + 8]
mov eax, dword [ebx + 0xb4]
push 0
push 0
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebx + 0x3e8]
push eax
push 0x5a
mov edx, dword [ecx]
push 0
call dword [edx + 8]
jmp 0x5addfc
mov esi, dword [ebp + 8]
push 0x11
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x5ae035
mov eax, dword [ebx + 0x284]
test eax, eax
jne 0x5ae035
test esi, esi
je 0x5ade27
cmp esi, 2
jne 0x5ae035
mov eax, dword [ebx + 0x340]
test eax, eax
jne 0x5ae035
mov eax, dword [0x839ca0]
test eax, eax
je 0x5adeb2
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [0x8330e8], ecx
mov dword [0x8330ec], esi
mov dword [0x8330f0], 0
mov edx, dword [ebx + 0xb4]
test ecx, ecx
mov edx, dword [edx + 0x40]
jl 0x5ade9e
mov eax, dword [edx + 0x110]
cmp ecx, eax
jge 0x5ade9e
test esi, esi
jl 0x5ade9e
cmp esi, dword [edx + 0x114]
jge 0x5ade9e
imul eax, esi
add eax, ecx
mov ecx, dword [edx + 0x120]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
test eax, eax
je 0x5ade9e
mov eax, dword [eax + 0x10]
cmp eax, 1
jne 0x5ae000
mov eax, 0xfeff0000
mov dword [0x8330f0], 1
mov dword [0x8330f4], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [ebx + 0xc0]
add edx, 0x258
cmp eax, edx
mov eax, dword [ebx + 0xb4]
seta cl
mov edx, dword [eax + 0x3c]
mov eax, dword [edx + 0x3f4]
test eax, eax
jne 0x5adf06
mov eax, dword [0x79ce64]
test eax, eax
mov eax, dword [0x79ce50]
je 0x5adeef
mov eax, dword [0x79ce54]
cmp eax, 2
jne 0x5adf06
test cl, cl
je 0x5adf06
mov eax, dword [ebx + 0xe0]
mov byte [ebp - 1], 1
test eax, eax
jne 0x5adf0a
mov byte [ebp - 1], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebx + 0xc0]
mov esi, dword [0x79ce64]
mov edi, dword [0x79ce50]
add ecx, 0xe1
cmp eax, ecx
mov eax, dword [0x79ce54]
seta dl
test esi, esi
mov ecx, edi
je 0x5adf3a
mov ecx, eax
cmp ecx, 1
jne 0x5adf4e
test esi, esi
je 0x5adf45
mov eax, edi
cmp eax, 2
je 0x5adf4e
test dl, dl
jne 0x5adf59
mov al, byte [ebp - 1]
test al, al
je 0x5ae035
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0x10
mov dword [ebx + 0xc0], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
jne 0x5ae019
mov eax, dword [0x7d6a0c]
test eax, eax
jne 0x5ae019
mov eax, dword [ebx + 0xb4]
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + 0x5c], 6
je 0x5ae019
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push edx
push eax
mov ecx, ebx
call fcn.005a6dd0
test al, al
jne 0x5adfbf
lea ecx, [ebp - 8]
lea edx, [ebp - 0xc]
push ecx
push edx
mov ecx, ebx
call fcn.005a6920
test al, al
je 0x5ae035
mov eax, dword [0x7d69b8]
test eax, eax
je 0x5adfd4
push 0x12
mov ecx, 0x7d67b0
call fcn.00507160
mov eax, dword [ebx + 0xb4]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x5ae035
mov eax, dword [ebp - 8]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x11
push 0
call dword [edx + 8]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 5
jne 0x5ae00f
mov eax, 0xfeffff00
jmp 0x5adea3
mov eax, 0x6600ffaa
jmp 0x5adead
mov ecx, dword [ebx + 0xb4]
mov eax, dword [ebp - 8]
push 0
push eax
mov ecx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0xc]
push eax
push 0x10
mov edx, dword [ecx]
push 0
call dword [edx + 8]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4