Function at 0x5a8d80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3dc]
cmp eax, 2
je 0x5a8d9f
cmp eax, 4
je 0x5a8d9f
xor ebx, ebx
jmp 0x5a8da4
mov ebx, 1
push 0x10
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov cl, ah
and ecx, 0xff
mov edi, ecx
test ebx, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
je 0x5a8de8
mov edx, dword [esi + 0x3e0]
push edx
call fcn.00540e70
add esp, 4
and eax, 0xff
mov dword [ebp - 0x10], eax
je 0x5a8de8
xor eax, eax
test edi, edi
sete al
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test edi, edi
je 0x5a8eaf
mov ecx, 0x8365d0
call fcn.006f21d0
test eax, eax
je 0x5a8e1d
mov eax, dword [ebx + 0x214]
push 1
push eax
mov ecx, 0x8365d0
call fcn.006ee280
test eax, eax
jne 0x5a8e4b
jmp 0x5a8e44
mov ecx, 0x8365d0
call fcn.006f21f0
test eax, eax
je 0x5a8e4b
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x9c]
push eax
mov ecx, 0x8365d0
call fcn.006f1ab0
test eax, eax
jne 0x5a8e4b
mov dword [ebp - 4], 1
mov eax, dword [esi + 0xb4]
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x5a8e73
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x9c]
push eax
mov ecx, 0x8365d0
call fcn.006f1ab0
test eax, eax
jne 0x5a8eaf
jmp 0x5a8ea8
mov ecx, dword [edi + 0x24]
test ecx, ecx
jne 0x5a8e91
mov ecx, dword [eax + 0x5c]
test ecx, ecx
jne 0x5a8e91
mov ecx, dword [eax + 0x68]
test ecx, ecx
jne 0x5a8e91
mov eax, dword [0x839c8c]
test eax, eax
je 0x5a8eaf
mov eax, dword [ebx + 0x214]
push 1
push eax
mov ecx, 0x8365d0
call fcn.006ee280
test eax, eax
jne 0x5a8eaf
mov dword [ebp - 4], 1
mov edx, dword [0x839c40]
mov eax, 1
cmp edx, eax
mov ecx, 3
jne 0x5a8eca
mov dword [ebp - 4], eax
xor edi, edi
jmp 0x5a8ed3
mov eax, dword [ebp - 4]
xor edi, edi
cmp eax, edi
je 0x5a8ef5
cmp dword [ebx + 0x5c], ecx
je 0x5a8ef5
cmp dword [ebp - 8], edi
je 0x5a8ee1
push 0xb
jmp 0x5a8ee3
push 5
mov ecx, esi
call fcn.00530350
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
jmp 0x5a8f0b
cmp dword [ebp - 8], edi
je 0x5a8f03
cmp dword [ebx + 0x5c], ecx
je 0x5a8f03
push 0xa
jmp 0x5a8f04
push edi
mov ecx, esi
call fcn.00530350
cmp dword [ebp - 4], edi
jne 0x5a8f1f
mov edx, dword [esi + 0xb4]
cmp dword [edx + 0x60], edi
je 0x5a9092
cmp dword [ebx + 0x5c], 3
je 0x5a9092
cmp dword [ebp - 8], edi
jne 0x5a9092
cmp dword [0x839e44], edi
je 0x5a9149
mov eax, dword [0x79ce64]
cmp eax, edi
mov eax, dword [0x79ce54]
je 0x5a8f51
mov eax, dword [0x79ce50]
cmp eax, 1
jne 0x5a9092
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x5a9092
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
je 0x5a8fe3
mov eax, dword [0x839db4]
mov ecx, dword [esi + 0xb4]
push eax
call fcn.00526d60
mov edx, eax
cmp edx, edi
je 0x5a9088
mov eax, dword [edx + 0x2b0]
cmp eax, edi
je 0x5a9088
cmp dword [eax + 4], edi
je 0x5a9088
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
push 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x214]
mov eax, dword [edx]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, edx
mov dword [ebp - 0x28], 3
call dword [eax + 0xb0]
xor edi, edi
jmp 0x5a9088
cmp dword [0x839e40], edi
je 0x5a9057
mov edx, dword [0x839e2c]
mov eax, dword [ebx + 0x214]
cmp edx, eax
jne 0x5a9057
mov eax, dword [0x839db4]
mov ecx, dword [esi + 0xb4]
push eax
call fcn.00526d60
mov edx, eax
cmp edx, edi
je 0x5a904f
mov eax, dword [edx + 0x2b0]
cmp eax, edi
je 0x5a904f
cmp dword [eax + 4], edi
je 0x5a904f
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
push 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x839e2c]
mov eax, dword [edx]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, edx
mov dword [ebp - 0x28], 3
call dword [eax + 0xa8]
xor edi, edi
mov dword [0x839e40], edi
jmp 0x5a9088
push 0xb
mov ecx, esi
call fcn.00530350
mov edx, dword [ebx + 0x214]
mov dword [0x839e30], edi
mov dword [0x839e2c], edx
mov dword [0x839e34], edi
mov dword [0x839e38], edi
mov dword [0x839e40], 1
mov dword [0x839e3c], 1
cmp dword [0x839e44], edi
je 0x5a9149
mov eax, dword [0x79ce64]
cmp eax, edi
mov eax, dword [0x79ce50]
je 0x5a90b1
mov eax, dword [0x79ce54]
cmp eax, 1
jne 0x5a9149
mov eax, dword [esi + 0x3e0]
mov ecx, 0x8365d0
push eax
call fcn.006f4b70
test eax, eax
je 0x5a9149
mov edx, dword [0x839db4]
mov ecx, dword [esi + 0xb4]
push edx
call fcn.00526d60
mov edx, eax
cmp edx, edi
je 0x5a96d5
mov eax, dword [edx + 0x2b0]
cmp eax, edi
je 0x5a96d5
cmp dword [eax + 4], edi
je 0x5a96d5
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esi + 0x3e0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x214]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [edx]
push ecx
mov ecx, edx
mov dword [ebp - 0x28], 7
call dword [eax + 0xa8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], edi
jne 0x5a915d
mov edx, dword [esi + 0xb4]
cmp dword [edx + 0x60], edi
je 0x5a9390
cmp dword [ebx + 0x5c], 3
je 0x5a92d0
cmp dword [ebp - 8], edi
jne 0x5a92d0
cmp dword [0x839ee8], edi
je 0x5a92d0
mov eax, dword [0x79ce64]
cmp eax, edi
mov eax, dword [0x79ce50]
je 0x5a918f
mov eax, dword [0x79ce54]
cmp eax, 1
jne 0x5a92d0
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x5a92d0
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
je 0x5a9221
mov eax, dword [0x839e5c]
mov ecx, dword [esi + 0xb4]
push eax
call fcn.00526d60
mov edx, eax
cmp edx, edi
je 0x5a92c6
mov eax, dword [edx + 0x2b4]
cmp eax, edi
je 0x5a92c6
cmp dword [eax + 4], edi
je 0x5a92c6
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
push 1
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x214]
mov eax, dword [edx]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, edx
mov dword [ebp - 0x28], 3
call dword [eax + 0xb0]
xor edi, edi
jmp 0x5a92c6
cmp dword [0x839ee4], edi
je 0x5a9295
mov edx, dword [0x839ecc]
mov eax, dword [ebx + 0x214]
cmp edx, eax
jne 0x5a9295
mov eax, dword [0x839e5c]
mov ecx, dword [esi + 0xb4]
push eax
call fcn.00526d60
mov edx, eax
cmp edx, edi
je 0x5a928d
mov eax, dword [edx + 0x2b4]
cmp eax, edi
je 0x5a928d
cmp dword [eax + 4], edi
je 0x5a928d
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
push 1
rep stosd dword es:[edi], eax
mov ecx, dword [0x839ecc]
mov eax, dword [edx]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, edx
mov dword [ebp - 0x28], 3
call dword [eax + 0xa8]
xor edi, edi
mov dword [0x839ee4], edi
jmp 0x5a92c6
push 0xb
mov ecx, esi
call fcn.00530350
mov edx, dword [ebx + 0x214]
mov dword [0x839ed0], edi
mov dword [0x839ecc], edx
mov dword [0x839ed4], edi
mov dword [0x839ed8], edi
mov dword [0x839ee4], 1
mov dword [0x839ee0], 1
cmp dword [ebp - 4], edi
je 0x5a9390
cmp dword [0x839ee8], edi
je 0x5a9390
mov eax, dword [0x79ce64]
cmp eax, edi
mov eax, dword [0x79ce50]
je 0x5a92f8
mov eax, dword [0x79ce54]
cmp eax, 1
jne 0x5a9390
mov eax, dword [esi + 0x3e0]
mov ecx, 0x8365d0
push eax
call fcn.006f4ba0
test eax, eax
je 0x5a9390
mov edx, dword [0x839e5c]
mov ecx, dword [esi + 0xb4]
push edx
call fcn.00526d60
mov edx, eax
cmp edx, edi
je 0x5a96d5
mov eax, dword [edx + 0x2b4]
cmp eax, edi
je 0x5a96d5
cmp dword [eax + 4], edi
je 0x5a96d5
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
push 1
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x3e8]
mov ecx, dword [esi + 0x3e0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x214]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [edx]
push ecx
mov ecx, edx
mov dword [ebp - 0x28], 7
call dword [eax + 0xa8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x79ce64]
cmp eax, edi
mov eax, dword [0x79ce50]
je 0x5a93a3
mov eax, dword [0x79ce54]
cmp eax, 1
jne 0x5a9602
cmp dword [ebp - 4], edi
je 0x5a9602
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
jne 0x5a9602
mov eax, dword [esi]
push edi
push edi
push 1
push 0x1a
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x214]
mov dword [esi + 0xe0], edi
mov dword [esi + 0xdc], ecx
mov ecx, 0x8365d0
call fcn.006f1a40
test eax, eax
jne 0x5a951c
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor edx, edx
mov dl, ah
test dl, dl
jne 0x5a9417
cmp dword [0x839c44], 1
jne 0x5a951c
mov eax, dword [ebp + 0x10]
mov ebx, dword [esi + 0x3e0]
cmp ebx, 0x2710
mov edi, dword [eax + 0x214]
je 0x5a949a
mov ecx, dword [0x83813c]
cmp ecx, 1
jg 0x5a943e
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 0x5a949a
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
jmp 0x5a95fd
mov eax, dword [esi + 0x3dc]
sub eax, 0
je 0x5a94f6
sub eax, 2
je 0x5a94af
sub eax, 2
jne 0x5a950d
mov ecx, dword [esi + 0xb4]
mov eax, dword [esi + 0x3e4]
push eax
push ebx
mov ecx, dword [ecx + 0x3c]
push edi
push 0x29
push 0
mov edx, dword [ecx]
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
push 0
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [esi + 0x534], 1
jmp 0x5a95fd
mov ecx, dword [esi + 0xb4]
push 0
push 0
push edi
mov ecx, dword [ecx + 0x3c]
push 0xa
push 0
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [esi + 0x534], 1
jmp 0x5a95fd
mov eax, dword [ebp + 0x10]
mov ebx, dword [esi + 0x3e0]
cmp ebx, 0x2710
mov edi, dword [eax + 0x214]
je 0x5a9592
mov ecx, dword [0x83813c]
cmp ecx, 1
jg 0x5a9543
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 0x5a9592
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
jmp 0x5a95f3
mov eax, dword [esi + 0x3dc]
sub eax, 0
je 0x5a95dc
sub eax, 2
je 0x5a95a7
sub eax, 2
jne 0x5a95f3
mov ecx, dword [esi + 0xb4]
mov eax, dword [esi + 0x3e4]
push eax
push ebx
mov ecx, dword [ecx + 0x3c]
push edi
push 0x29
push 0
mov edx, dword [ecx]
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 0x5a95ee
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
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov eax, dword [0x79ce64]
cmp eax, edi
mov eax, dword [0x79ce54]
je 0x5a9615
mov eax, dword [0x79ce50]
cmp eax, 1
jne 0x5a96a2
cmp dword [ebp - 0xc], edi
je 0x5a96a2
mov ecx, dword [0x83813c]
cmp ecx, 1
jg 0x5a9633
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 0x5a9683
push edi
push edi
push edi
push edi
push 3
mov ecx, 0x7d67b0
call fcn.00510520
push edi
push edi
push 0xff
push 0x133
call fcn.0057ed70
add esp, 4
mov ecx, 0x7d67b0
push eax
push 1
call fcn.00510520
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
push edi
push edi
push 1
push 0x1a
mov ecx, esi
call dword [eax + 0x18]
mov ecx, dword [ebx + 0x214]
mov dword [0x834280], ecx
mov dword [esi + 0xe0], edi
mov edx, dword [esi + 0xc4]
mov eax, dword [0x79ce3c]
cmp edx, eax
jne 0x5a96c1
mov eax, dword [esi + 0xc8]
mov ecx, dword [0x79ce40]
cmp eax, ecx
je 0x5a96c7
mov dword [esi + 0xd4], edi
mov ecx, dword [esi + 0xd4]
push ecx
mov ecx, esi
call fcn.005a7b50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc