Function at 0x5371fc
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 0x537a63
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045717c
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x537a45
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.004dd68c
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x415]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
jg 0x537a45
cmp dword [ebp - 0xc], 0
jl 0x537a45
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0051f4ac
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0051d6c8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x140]
dec eax
mov esi, dword [ebp - 0xc]
cmp eax, esi
jne 0x53731d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
cmp dword [eax + 0x1c], 0
je 0x53731d
mov ebx, dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0051f4ac
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
call fcn.0051d6c8
mov eax, dword [eax + 0xc0]
mov eax, dword [eax + 0x1c]
lea edx, [ebp - 0x3c]
call fcn.00451ee4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
add eax, 0x38
call fcn.0040464c
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00535b48
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 0x537a45
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x140]
dec eax
cmp eax, dword [ebp - 0xc]
jne 0x537340
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.0051948c
test al, al
jne 0x537379
mov eax, dword [ebp - 4]
call fcn.005306c0
and eax, 0xff
cmp eax, dword [ebp - 0xc]
jg 0x537a45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
cmp byte [eax + 0x15], 0
je 0x537a45
mov eax, dword [ebp - 0x14]
call fcn.0051c494
test al, al
je 0x537a45
mov eax, dword [0x657ae4]
mov eax, dword [eax]
call fcn.0045ffdc
test eax, eax
jne 0x537a45
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x537a45
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.00535b48
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 0x5373f5
mov eax, dword [ebp - 4]
call fcn.0045481c
mov edx, eax
sub edx, dword [ebp - 0x2f]
sub edx, dword [ebp - 0x37]
lea eax, [ebp - 0x37]
xor ecx, ecx
call fcn.0040736c
mov eax, dword [ebp - 4]
call fcn.0045481c
mov edi, eax
mov eax, dword [ebp - 4]
sub edi, dword [eax + 0x268]
mov eax, dword [ebp - 0x14]
call fcn.0051a3a8
add eax, dword [ebp - 0x37]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x140]
dec eax
cmp ebx, eax
jne 0x537584
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.005194c0
cmp eax, 2
jle 0x537452
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.005194c0
sub eax, 2
sub dword [ebp - 0x2f], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.005194c0
sub eax, 2
sub dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x53e], 1
jne 0x5374b5
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0051f4ac
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4b8]
mov eax, dword [edx + eax*8]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x24]
call fcn.00404690
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x415]
sub esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
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 0x537a45
jmp 0x5374c6
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.00518d90
mov eax, dword [ebp - 4]
cmp byte [eax + 0x53e], 1
je 0x5374ee
mov eax, dword [ebp - 4]
call fcn.0052e5c8
test eax, eax
jne 0x5374ee
mov eax, dword [ebp - 4]
call fcn.0052e5e0
test eax, eax
jne 0x5374ee
xor eax, eax
jmp 0x5374f0
mov al, 1
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.00518d68
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x32c], 0
jne 0x537525
mov dl, 1
mov eax, dword [0x42b680]
call fcn.0042ce94
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc0]
call fcn.00518db8
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x32c]
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.005196e0
cmp al, 1
jne 0x537899
mov byte [ebp - 0x25], 0
lea eax, [ebp - 0x37]
call fcn.00510f78
jmp 0x537899
mov eax, dword [ebp - 4]
call fcn.005392d8
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.005306c0
and eax, 0xff
add esi, eax
cmp ebx, esi
jge 0x5377df
mov byte [ebp - 0x27], 1
mov eax, dword [ebp - 4]
call fcn.005306c0
and eax, 0xff
mov edx, dword [ebp - 0xc]
sub edx, eax
mov eax, dword [ebp - 4]
call fcn.00531390
xor eax, eax
push ebp
push 0x5377d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0053712c
mov eax, dword [ebp - 0x14]
call fcn.0051c518
test al, al
je 0x53761f
mov eax, dword [ebp - 0x14]
call fcn.0051a3a8
mov ebx, eax
add ebx, dword [ebp - 0x37]
mov eax, dword [ebp - 0x14]
call fcn.0051cb7c
sub ebx, eax
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2f]
jge 0x537610
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2f], eax
cmp edi, dword [ebp - 0x2f]
jle 0x53762d
lea eax, [ebp - 0x24]
call fcn.004045f8
jmp 0x53762d
mov eax, dword [ebp - 0x14]
call fcn.0051a3a8
add eax, dword [ebp - 0x37]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x540]
xor edx, edx
call fcn.0053ac44
cmp eax, dword [ebp - 0x14]
jne 0x53764d
mov eax, dword [ebp - 4]
call fcn.00533b04
add dword [ebp - 0x37], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x54], 0
je 0x537671
mov eax, dword [ebp - 0x14]
call fcn.0051d01c
test al, al
je 0x537671
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 0x537687
lea eax, [ebp - 0x24]
call fcn.004045f8
mov eax, dword [ebp - 0x14]
call fcn.0051a0e8
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 0x14]
call fcn.0051ae98
add al, 0xfc
sub al, 2
jae 0x5376a4
mov byte [ebp - 0x26], 0
mov eax, dword [ebp - 0x14]
call fcn.0051abc8
test al, al
je 0x5376c9
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004e3da0
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.0051d598
test al, al
jne 0x5376cd
xor eax, eax
jmp 0x5376cf
mov al, 1
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x32c], 0
jne 0x5376f3
mov dl, 1
mov eax, dword [0x42b680]
call fcn.0042ce94
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov eax, dword [ebp - 0x14]
call fcn.0051a280
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x478]
mov eax, dword [ebp - 0x14]
call fcn.0051c814
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x478]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
mov eax, dword [eax + 0x14]
call fcn.0042d84c
mov dword [ebx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov dword [ebx + 0x14], eax
mov al, byte [0x537a74]
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.0040464c
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.004038e0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x478]
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.00404690
mov al, byte [ebx + 4]
mov byte [ebp - 0x26], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x32c]
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 0x537899
mov eax, dword [ebp - 4]
call fcn.005313e4
ret
mov eax, dword [ebp - 4]
call fcn.0052e598
test eax, eax
jle 0x537a45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x294]
dec eax
cmp eax, dword [ebp - 0xc]
jge 0x537a45
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.0051c4f0
mov esi, eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x32c], 0
jne 0x53783b
mov dl, 1
mov eax, dword [0x42b680]
call fcn.0042ce94
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], eax
mov eax, esi
call fcn.0053a3a8
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x32c]
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.0053a388
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 + 0x1e0]
cmp byte [ebp - 0x25], 0
je 0x5378a6
mov ebx, 2
jmp 0x5378a8
xor ebx, ebx
cmp byte [ebp - 0x27], 0
je 0x5378c0
mov eax, dword [ebp - 0x14]
call fcn.0051ae98
add al, 0xfc
sub al, 2
jae 0x5378c0
mov al, 1
jmp 0x5378f6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
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.00457150
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x208]
mov ecx, ebx
call fcn.00510f90
mov edx, dword [ebp - 4]
cmp byte [edx + 0x254], 0
je 0x537909
mov esi, 2
jmp 0x53790e
mov esi, 1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
mov ebx, edx
test al, al
jne 0x537933
cmp byte [ebp - 0x26], 1
jne 0x537a3d
mov eax, dword [ebp - 0x1c]
sub eax, 2
cmp eax, dword [ebp - 0x2f]
jle 0x537a3d
lea eax, [ebx + 0x38]
mov edx, dword [ebp - 0x24]
call fcn.0040464c
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 0x53795c
je 0x53797b
dec al
je 0x5379a0
jmp 0x5379e1
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
mov eax, dword [ebp - 0x37]
dec eax
call fcn.00407258
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
jmp 0x5379e1
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.00407258
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
jmp 0x5379e1
mov eax, dword [ebp - 0x1c]
inc eax
sub eax, dword [ebp - 0x18]
sub eax, 6
mov edx, dword [ebp - 0x18]
sar edx, 1
jns 0x5379b4
adc edx, 0
add eax, edx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x37]
sub edx, 4
sar edx, 1
jns 0x5379c6
adc edx, 0
sub eax, edx
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x33]
sub edx, esi
call fcn.00407258
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 0x5379fb
mov eax, dword [ebp - 4]
call fcn.0045481c
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.00454930
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
mov eax, dword [0x51dc98]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov dword [ebx + 0x3c], eax
cmp byte [ebp - 0x25], 0
je 0x537a45
mov eax, dword [ebp - 0x2f]
sub eax, dword [ebp - 0x37]
sub eax, 4
mov dword [ebx + 0x10], eax
jmp 0x537a45
lea eax, [ebx + 0x38]
call fcn.004045f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x537a6a
lea eax, [ebp - 0x3c]
call fcn.004045f8
lea eax, [ebp - 0x24]
call fcn.004045f8
ret