Function at 0x5a96e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3dc]
cmp eax, 2
je 0x5a96ff
cmp eax, 4
je 0x5a96ff
xor edi, edi
jmp 0x5a9704
mov edi, 1
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ebx, ebx
mov bl, ah
mov eax, 0
and ebx, 0xff
sete al
test edi, edi
mov dword [ebp - 4], eax
je 0x5a981f
mov ecx, dword [esi + 0x3e0]
push ecx
call fcn.00540e70
add esp, 4
and eax, 0xff
mov dword [ebp - 8], eax
je 0x5a9745
mov dword [ebp - 4], ebx
push 0xb
mov ecx, esi
call fcn.00530350
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edi, 1
mov dword [eax], edi
mov eax, dword [0x839c40]
cmp eax, edi
jne 0x5a9766
mov dword [ebp - 4], edi
cmp dword [0x839e44], ebx
je 0x5a9a23
mov eax, dword [0x79ce64]
cmp eax, ebx
mov eax, dword [0x79ce54]
je 0x5a9785
mov eax, dword [0x79ce50]
cmp eax, edi
jne 0x5a996b
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x5a996b
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
je 0x5a98bf
mov eax, dword [0x839db4]
mov ecx, dword [esi + 0xb4]
push eax
call fcn.00526d60
mov edx, eax
cmp edx, ebx
je 0x5a9965
mov eax, dword [edx + 0x2b0]
cmp eax, ebx
je 0x5a9965
cmp dword [eax + 4], ebx
je 0x5a9965
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x20]
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], 3
mov eax, dword [ecx + 0x214]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 0xb0]
mov edi, 1
jmp 0x5a9965
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0x258], 0x64
jne 0x5a983a
xor ebx, ebx
mov ecx, esi
push ebx
call fcn.00530350
jmp 0x5a9750
mov ecx, 0x8365d0
call fcn.006f21f0
test eax, eax
je 0x5a9877
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x9c]
push eax
mov ecx, 0x8365d0
call fcn.006f1ab0
test eax, eax
je 0x5a974e
xor ebx, ebx
mov ecx, esi
push ebx
mov dword [ebp - 4], ebx
call fcn.00530350
jmp 0x5a9750
mov eax, dword [esi + 0xb4]
xor ebx, ebx
cmp dword [eax + 0x60], ebx
je 0x5a98b1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x9c]
push eax
mov ecx, 0x8365d0
call fcn.006f1ab0
test eax, eax
je 0x5a9750
push ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00530350
jmp 0x5a9750
push 5
mov ecx, esi
call fcn.00530350
jmp 0x5a9750
cmp dword [0x839e40], ebx
je 0x5a9936
mov eax, dword [ebp + 0x10]
mov edx, dword [0x839e2c]
cmp edx, dword [eax + 0x214]
jne 0x5a9936
mov edx, dword [0x839db4]
mov ecx, dword [esi + 0xb4]
push edx
call fcn.00526d60
mov edx, eax
cmp edx, ebx
je 0x5a992e
mov eax, dword [edx + 0x2b0]
cmp eax, ebx
je 0x5a992e
cmp dword [eax + 4], ebx
je 0x5a992e
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x20]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x839e2c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [edx]
push ecx
mov ecx, edx
mov dword [ebp - 0x20], 3
call dword [eax + 0xa8]
mov edi, 1
mov dword [0x839e40], ebx
jmp 0x5a9965
push 0xb
mov ecx, esi
call fcn.00530350
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x214]
mov dword [0x839e30], ebx
mov dword [0x839e2c], eax
mov dword [0x839e34], ebx
mov dword [0x839e38], ebx
mov dword [0x839e40], edi
mov dword [0x839e3c], edi
cmp dword [0x839e44], ebx
je 0x5a9a23
mov eax, dword [0x79ce64]
cmp eax, ebx
mov eax, dword [0x79ce50]
je 0x5a998a
mov eax, dword [0x79ce54]
cmp eax, edi
jne 0x5a9a23
mov ecx, dword [esi + 0x3e0]
push ecx
mov ecx, 0x8365d0
call fcn.006f4b70
test eax, eax
je 0x5a9a23
mov edx, dword [0x839db4]
mov ecx, dword [esi + 0xb4]
push edx
call fcn.00526d60
mov edx, eax
cmp edx, ebx
je 0x5a9f39
mov eax, dword [edx + 0x2b0]
cmp eax, ebx
je 0x5a9f39
cmp dword [eax + 4], ebx
je 0x5a9f39
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x20]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esi + 0x3e0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 7
mov ecx, dword [eax + 0x214]
mov eax, dword [edx]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edx
call dword [eax + 0xa8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x839ee8], ebx
je 0x5a9b87
mov eax, dword [0x79ce64]
cmp eax, ebx
mov eax, dword [0x79ce50]
je 0x5a9a42
mov eax, dword [0x79ce54]
cmp eax, edi
jne 0x5a9b87
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
je 0x5a9b87
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x5a9ada
mov edx, dword [0x839e5c]
mov ecx, dword [esi + 0xb4]
push edx
call fcn.00526d60
mov edx, eax
cmp edx, ebx
je 0x5a9b81
mov eax, dword [edx + 0x2b4]
cmp eax, ebx
je 0x5a9b81
cmp dword [eax + 4], ebx
je 0x5a9b81
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x20]
push 1
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], 3
mov ecx, dword [eax + 0x214]
mov eax, dword [edx]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edx
call dword [eax + 0xb0]
mov edi, 1
jmp 0x5a9b81
cmp dword [0x839ee4], ebx
je 0x5a9b52
mov eax, dword [ebp + 0x10]
mov edx, dword [0x839ecc]
cmp edx, dword [eax + 0x214]
jne 0x5a9b52
mov edx, dword [0x839e5c]
mov ecx, dword [esi + 0xb4]
push edx
call fcn.00526d60
mov edx, eax
cmp edx, ebx
je 0x5a9b4a
mov eax, dword [edx + 0x2b4]
cmp eax, ebx
je 0x5a9b4a
cmp dword [eax + 4], ebx
je 0x5a9b4a
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x20]
push 1
rep stosd dword es:[edi], eax
mov eax, dword [0x839ecc]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [edx]
push ecx
mov ecx, edx
mov dword [ebp - 0x20], 3
call dword [eax + 0xa8]
mov edi, 1
mov dword [0x839ee4], ebx
jmp 0x5a9b81
push 0xb
mov ecx, esi
call fcn.00530350
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x214]
mov dword [0x839ed0], ebx
mov dword [0x839ecc], eax
mov dword [0x839ed4], ebx
mov dword [0x839ed8], ebx
mov dword [0x839ee4], edi
mov dword [0x839ee0], edi
cmp dword [ebp - 4], ebx
je 0x5a9c49
cmp dword [0x839ee8], ebx
je 0x5a9c49
mov eax, dword [0x79ce64]
cmp eax, ebx
mov eax, dword [0x79ce50]
je 0x5a9baf
mov eax, dword [0x79ce54]
cmp eax, edi
jne 0x5a9c49
mov ecx, dword [esi + 0x3e0]
push ecx
mov ecx, 0x8365d0
call fcn.006f4ba0
test eax, eax
je 0x5a9c49
mov edx, dword [0x839e5c]
mov ecx, dword [esi + 0xb4]
push edx
call fcn.00526d60
mov edx, eax
cmp edx, ebx
je 0x5a9f39
mov eax, dword [edx + 0x2b4]
cmp eax, ebx
je 0x5a9f39
cmp dword [eax + 4], ebx
je 0x5a9f39
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x20]
push 1
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esi + 0x3e0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 7
mov ecx, dword [eax + 0x214]
mov eax, dword [edx]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edx
call dword [eax + 0xa8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x79ce64]
cmp eax, ebx
mov eax, dword [0x79ce50]
je 0x5a9c5c
mov eax, dword [0x79ce54]
cmp eax, edi
jne 0x5a9eb2
cmp dword [ebp - 4], ebx
je 0x5a9eb2
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
jne 0x5a9eb2
mov eax, dword [esi]
push ebx
push ebx
push edi
push 0x1a
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [esi + 0xd8]
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xdc], ecx
mov ecx, 0x8365d0
call fcn.006f1a40
test eax, eax
jne 0x5a9dc1
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
jne 0x5a9ccd
cmp dword [0x839c44], edi
jne 0x5a9dc1
mov ebx, dword [esi + 0x3e0]
mov edi, dword [esi + 0xd8]
cmp ebx, 0x2710
je 0x5a9d4f
mov ecx, dword [0x83813c]
cmp ecx, 1
jg 0x5a9cf1
mov ecx, 1
mov eax, dword [0x838148]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
cmp eax, 0x5a
jl 0x5a9d4f
push 0
push 0
push 0
push 0
push 3
mov ecx, 0x7d67b0
call fcn.00510520
push 0
push 0
push 0xff
push 0x133
call fcn.0057ed70
add esp, 4
mov ecx, 0x7d67b0
push eax
push 1
call fcn.00510520
mov dword [esi + 0x534], 1
xor ebx, ebx
jmp 0x5a9ed8
mov eax, dword [esi + 0x3dc]
sub eax, 0
je 0x5a9d99
sub eax, 2
je 0x5a9d64
sub eax, 2
jne 0x5a9db0
mov eax, dword [esi + 0xb4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [esi + 0x3e4]
push eax
push ebx
mov edx, dword [ecx]
push edi
push 0x29
push 0
call dword [edx + 8]
mov ecx, dword [esi + 0xb4]
mov eax, dword [esi + 0x3e8]
push 0
push 0
mov ecx, dword [ecx + 0x3c]
push eax
push 0x5a
mov edx, dword [ecx]
jmp 0x5a9dab
mov ecx, dword [esi + 0xb4]
push 0
push 0
push edi
mov ecx, dword [ecx + 0x3c]
push 0xa
mov edx, dword [ecx]
push 0
call dword [edx + 8]
mov dword [esi + 0x534], 1
xor ebx, ebx
jmp 0x5a9ed8
mov ebx, dword [esi + 0x3e0]
mov edi, dword [esi + 0xd8]
cmp ebx, 0x2710
je 0x5a9e43
mov ecx, dword [0x83813c]
cmp ecx, 1
jg 0x5a9de5
mov ecx, 1
mov eax, dword [0x838148]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
cmp eax, 0x5a
jl 0x5a9e43
push 0
push 0
push 0
push 0
push 3
mov ecx, 0x7d67b0
call fcn.00510520
push 0
push 0
push 0xff
push 0x133
call fcn.0057ed70
add esp, 4
mov ecx, 0x7d67b0
push eax
push 1
call fcn.00510520
mov dword [esi + 0x534], 0
xor ebx, ebx
jmp 0x5a9ed8
mov eax, dword [esi + 0x3dc]
sub eax, 0
je 0x5a9e8d
sub eax, 2
je 0x5a9e58
sub eax, 2
jne 0x5a9ea4
mov eax, dword [esi + 0xb4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [esi + 0x3e4]
push eax
push ebx
mov edx, dword [ecx]
push edi
push 0x29
push 0
call dword [edx + 8]
mov ecx, dword [esi + 0xb4]
mov eax, dword [esi + 0x3e8]
push 0
push 0
mov ecx, dword [ecx + 0x3c]
push eax
push 0x5a
mov edx, dword [ecx]
jmp 0x5a9e9f
mov ecx, dword [esi + 0xb4]
push 0
push 1
push edi
mov ecx, dword [ecx + 0x3c]
push 0xa
mov edx, dword [ecx]
push 0
call dword [edx + 8]
mov dword [esi + 0x534], 0
xor ebx, ebx
jmp 0x5a9ed8
cmp dword [esi + 0x534], ebx
jne 0x5a9ed8
mov eax, dword [0x79ce64]
cmp eax, ebx
mov eax, dword [0x79ce50]
je 0x5a9ecd
mov eax, dword [0x79ce54]
cmp eax, 3
jne 0x5a9ed8
mov dword [esi + 0xd8], ebx
mov eax, dword [esi + 0xc4]
mov ecx, dword [0x79ce3c]
cmp eax, ecx
jne 0x5a9ef7
mov ecx, dword [esi + 0xc8]
mov eax, dword [0x79ce40]
cmp ecx, eax
je 0x5a9f1c
cmp dword [esi + 0x534], ebx
jne 0x5a9f1c
mov eax, dword [0x79ce64]
cmp eax, ebx
mov eax, dword [0x79ce50]
je 0x5a9f12
mov eax, dword [0x79ce54]
cmp eax, ebx
jne 0x5a9f1c
mov dword [esi + 0xd8], ebx
mov edx, dword [esi + 0xd8]
mov ecx, esi
push edx
call fcn.005a7b50
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x5c], 3
jne 0x5a9f39
mov dword [esi + 0xd8], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc