Function at 0x557d94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5585d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004746d0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x5585ba
mov byte [ebp - 0x27], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x26c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x268]
mov eax, dword [ebp - 4]
call fcn.00502010
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x405]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
jg 0x5585ba
cmp dword [ebp - 0xc], 0
jl 0x5585ba
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005445fc
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
call fcn.00542904
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x134]
dec eax
mov esi, dword [ebp - 0xc]
cmp eax, esi
jne 0x557eb5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
cmp dword [eax + 0x1c], 0
je 0x557eb5
mov ebx, dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005445fc
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
call fcn.00542904
mov eax, dword [eax + 0xc0]
mov eax, dword [eax + 0x1c]
lea edx, [ebp - 0x3c]
call fcn.0046f3d4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
add eax, 0x38
call fcn.0040450c
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00556774
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
lea esi, [ebp - 0x4c]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x5585ba
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x134]
dec eax
cmp eax, dword [ebp - 0xc]
jne 0x557ed8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.0053ebc0
test al, al
jne 0x557f0e
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x406]
cmp eax, dword [ebp - 0xc]
jg 0x5585ba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f4]
cmp byte [eax + 0x15], 0
je 0x5585ba
mov eax, dword [ebp - 0x14]
call fcn.00541b68
test al, al
je 0x5585ba
mov eax, dword [0x60f060]
mov eax, dword [eax]
call fcn.0047d53c
test eax, eax
jne 0x5585ba
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x5585ba
lea eax, [ebp - 0x37]
push eax
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov esi, dword [ebp - 0x10]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00556774
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x268]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x557f8a
mov eax, dword [ebp - 4]
call fcn.00471d38
mov edx, eax
sub edx, dword [ebp - 0x2f]
sub edx, dword [ebp - 0x37]
lea eax, [ebp - 0x37]
xor ecx, ecx
call fcn.00406d74
mov eax, dword [ebp - 4]
call fcn.00471d38
mov edi, eax
mov eax, dword [ebp - 4]
sub edi, dword [eax + 0x268]
mov eax, dword [ebp - 0x14]
call fcn.0053fadc
add eax, dword [ebp - 0x37]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x134]
dec eax
cmp ebx, eax
jne 0x558119
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.0053ebf4
cmp eax, 2
jle 0x557fe7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.0053ebf4
sub eax, 2
sub dword [ebp - 0x2f], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.0053ebf4
sub eax, 2
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x516], 1
jne 0x55804a
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.005445fc
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x490]
mov eax, dword [edx + eax*8]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x24]
call fcn.00404550
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x405]
sub esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x490]
mov eax, dword [eax + esi*8]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x2b]
pop edx
sub eax, edx
inc eax
mov dword [ebp - 0x33], eax
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x26c]
jg 0x5585ba
jmp 0x55805b
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.0053e4c4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x516], 1
je 0x558083
mov eax, dword [ebp - 4]
call fcn.0054ff00
test eax, eax
jne 0x558083
mov eax, dword [ebp - 4]
call fcn.0054ff20
test eax, eax
jne 0x558083
xor eax, eax
jmp 0x558085
mov al, 1
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.0053e49c
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x31c], 0
jne 0x5580ba
mov dl, 1
mov eax, dword [0x42bac0]
call fcn.0042d388
mov edx, dword [ebp - 4]
mov dword [edx + 0x31c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.0053e4ec
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.0053ee14
cmp al, 1
jne 0x55840e
mov byte [ebp - 0x25], 0
lea eax, [ebp - 0x37]
call fcn.00536670
jmp 0x55840e
mov eax, dword [ebp - 4]
call fcn.00559d90
mov edx, dword [ebp - 4]
movzx esi, byte [edx + 0x406]
add eax, esi
cmp ebx, eax
jge 0x558354
mov byte [ebp - 0x27], 1
mov edx, ebx
sub edx, esi
mov eax, dword [ebp - 4]
call fcn.005520a0
xor eax, eax
push ebp
push 0x55834d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.00557cc4
mov eax, dword [ebp - 0x14]
call fcn.00541bec
test al, al
je 0x5581a1
mov eax, dword [ebp - 0x14]
call fcn.0053fadc
mov ebx, eax
add ebx, dword [ebp - 0x37]
mov eax, dword [ebp - 0x14]
call fcn.0054224c
sub ebx, eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2f]
jge 0x558192
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2f], eax
cmp edi, dword [ebp - 0x2f]
jle 0x5581af
lea eax, [ebp - 0x24]
call fcn.004044b8
jmp 0x5581af
mov eax, dword [ebp - 0x14]
call fcn.0053fadc
add eax, dword [ebp - 0x37]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x518]
xor edx, edx
call fcn.0055b41c
cmp eax, dword [ebp - 0x14]
jne 0x5581cf
mov eax, dword [ebp - 4]
call fcn.00554770
add dword [ebp - 0x37], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x54], 0
je 0x5581f3
mov eax, dword [ebp - 0x14]
call fcn.005426ec
test al, al
je 0x5581f3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x34]
add eax, 5
add dword [ebp - 0x37], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
cmp eax, dword [ebp - 0x37]
jge 0x558209
lea eax, [ebp - 0x24]
call fcn.004044b8
mov eax, dword [ebp - 0x14]
call fcn.0053f81c
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 0x14]
call fcn.005405cc
add al, 0xfc
sub al, 2
jae 0x558226
mov byte [ebp - 0x26], 0
mov eax, dword [ebp - 0x14]
call fcn.005402fc
test al, al
je 0x55823e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44d], 0
jne 0x558242
xor eax, eax
jmp 0x558244
mov al, 1
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x31c], 0
jne 0x558268
mov dl, 1
mov eax, dword [0x42bac0]
call fcn.0042d388
mov edx, dword [ebp - 4]
mov dword [edx + 0x31c], eax
mov eax, dword [ebp - 0x14]
call fcn.0053f9b4
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x454]
mov eax, dword [ebp - 0x14]
call fcn.00541ee8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x454]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0x14]
call fcn.0042dd40
mov dword [ebx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov dword [ebx + 0x14], eax
mov al, byte [0x5585e8]
mov byte [ebx + 0x24], al
mov al, byte [ebp - 0x26]
mov byte [ebx + 4], al
lea eax, [ebx + 0x28]
mov edx, dword [ebp - 0x24]
call fcn.0040450c
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 8]
push eax
mov al, byte [ebx + 0x24]
push eax
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov si, 0xff91
call fcn.004037c0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x454]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0x70]
lea eax, [ebp - 0x24]
mov edx, dword [ebx + 0x28]
call fcn.00404550
mov al, byte [ebx + 4]
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55840e
mov eax, dword [ebp - 4]
call fcn.005520f4
ret
mov eax, dword [ebp - 4]
call fcn.0054fed0
test eax, eax
jle 0x5585ba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x294]
dec eax
cmp eax, dword [ebp - 0xc]
jge 0x5585ba
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov edx, ebx
sub edx, dword [eax + 0x294]
mov eax, dword [ebp - 0x14]
call fcn.00541bc4
mov esi, eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x31c], 0
jne 0x5583b0
mov dl, 1
mov eax, dword [0x42bac0]
call fcn.0042d388
mov edx, dword [ebp - 4]
mov dword [edx + 0x31c], eax
mov eax, esi
call fcn.0055ab7c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x31c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x31]
mov byte [ebp - 0x25], al
mov eax, esi
call fcn.0055ab5c
mov byte [ebp - 0x26], al
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov edx, ebx
sub edx, dword [eax + 0x294]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x1b0]
cmp byte [ebp - 0x25], 0
je 0x55841b
mov ebx, 2
jmp 0x55841d
xor ebx, ebx
cmp byte [ebp - 0x27], 0
je 0x558435
mov eax, dword [ebp - 0x14]
call fcn.005405cc
add al, 0xfc
sub al, 2
jae 0x558435
mov al, 1
jmp 0x55846b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x37]
push eax
mov al, byte [ebp - 0x25]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.004746a4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x208]
mov ecx, ebx
call fcn.00536688
mov edx, dword [ebp - 4]
cmp byte [edx + 0x254], 0
je 0x55847e
mov esi, 2
jmp 0x558483
mov esi, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
mov ebx, edx
test al, al
jne 0x5584a8
cmp byte [ebp - 0x26], 1
jne 0x5585b2
mov eax, dword [ebp - 0x1c]
sub eax, 2
cmp eax, dword [ebp - 0x2f]
jle 0x5585b2
lea eax, [ebx + 0x38]
mov edx, dword [ebp - 0x24]
call fcn.0040450c
push esi
lea edi, [ebx + 0x18]
lea esi, [ebp - 0x37]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov al, byte [ebp - 0x26]
sub al, 1
jb 0x5584d1
je 0x5584f0
dec al
je 0x558515
jmp 0x558556
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
mov eax, dword [ebp - 0x37]
dec eax
call fcn.00406c60
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
jmp 0x558556
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
mov eax, dword [ebp - 0x1c]
inc eax
sub eax, dword [ebp - 0x18]
sub eax, 7
call fcn.00406c60
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
jmp 0x558556
mov eax, dword [ebp - 0x1c]
inc eax
sub eax, dword [ebp - 0x18]
sub eax, 6
mov edx, dword [ebp - 0x18]
sar edx, 1
jns 0x558529
adc edx, 0
add eax, edx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x37]
sub edx, 4
sar edx, 1
jns 0x55853b
adc edx, 0
sub eax, edx
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
call fcn.00406c60
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
test al, al
je 0x558570
mov eax, dword [ebp - 4]
call fcn.00471d38
sub eax, dword [ebx + 8]
mov dword [ebx + 8], eax
lea ecx, [ebp - 0x54]
lea edx, [ebx + 8]
mov eax, dword [ebp - 4]
call fcn.00471e4c
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
mov eax, dword [0x542e94]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
mov dword [ebx + 0x3c], eax
cmp byte [ebp - 0x25], 0
je 0x5585ba
mov eax, dword [ebp - 0x2f]
sub eax, dword [ebp - 0x37]
sub eax, 4
mov dword [ebx + 0x10], eax
jmp 0x5585ba
lea eax, [ebx + 0x38]
call fcn.004044b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5585df
lea eax, [ebp - 0x3c]
call fcn.004044b8
lea eax, [ebp - 0x24]
call fcn.004044b8
ret