Function at 0x546480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566250
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x5a0440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0053aa40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
xor ecx, ecx
mov byte [ebp - 0x14], cl
movzx edx, byte [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.0053a9f0
add esp, 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], eax
xor ecx, ecx
mov byte [ebp - 0x13], cl
movzx edx, byte [ebp - 0x13]
push edx
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0053a9f0
add esp, 0xc
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x3c]
sar edx, 2
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp dword [ebp - 0xc4], eax
jne 0x5466ac
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0xa4], edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0xe0]
call fcn.0050cda0
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.00539b10
add esp, 0xc
movzx edx, al
test edx, edx
je 0x5466ac
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00509310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00509310
mov al, byte [ebp - 0x11]
jmp 0x546a98
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x5466bd
mov dword [ebp - 0x64], 1
jmp 0x5466c4
mov dword [ebp - 0x64], 0
movzx ecx, byte [ebp - 0x64]
test ecx, ecx
jne 0x546703
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x402]
test eax, eax
je 0x5466ef
cmp dword [ebp + 0xc], 0
je 0x546703
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jl 0x546703
xor edx, edx
shl edx, 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + edx]
mov dword [eax + 0x464], edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x402]
test ecx, ecx
je 0x5467e6
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x20]
sar edx, 2
cmp edx, 1
jne 0x5467e6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x5467e6
mov dword [ebp + 0xc], 1
xor ecx, ecx
shl ecx, 2
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x2c], eax
mov cl, byte [ebp - 0x46]
mov byte [ebp - 0x45], cl
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0x464]
jge 0x54676f
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], edx
jmp 0x54677b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x464]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x24], edx
jmp 0x54678c
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx + 0x464]
jle 0x5467a2
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x68], eax
jmp 0x5467ae
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x464]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x68]
jg 0x5467e6
cmp dword [ebp - 0x24], 0
jl 0x5467e4
mov ecx, dword [ebp - 0x10]
sub ecx, 0x8c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0x8c]
mov edx, dword [eax + 0xc]
call edx
cmp dword [ebp - 0x24], eax
jge 0x5467e4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.0051f5e0
jmp 0x546783
cmp dword [ebp + 0xc], 0
je 0x5468a0
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0050cda0
jmp 0x546823
lea ecx, [ebp - 0x40]
call fcn.00508000
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xc8]
call fcn.0050cda0
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0050cdd0
movzx ecx, al
test ecx, ecx
jne 0x54686c
mov dword [ebp - 0x5c], 1
jmp 0x546873
mov dword [ebp - 0x5c], 0
movzx edx, byte [ebp - 0x5c]
test edx, edx
je 0x546895
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x50], ecx
push 0
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 0x14]
call edx
jmp 0x54681b
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004e0000
mov dword [ebp - 0x30], 0
jmp 0x5468b2
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 2
cmp dword [ebp - 0x30], ecx
jae 0x546955
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x8c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0x8c]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x5468fd
jmp 0x5468a9
push 0x580708
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x44]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x54691a
jmp 0x5468a9
push 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14]
call eax
movzx ecx, al
test ecx, ecx
je 0x546950
movzx edx, byte [0x5a6cf0]
push edx
lea eax, [ebp - 0x28]
push eax
push 0
lea ecx, [ebp - 0xf4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00539dd0
jmp 0x5468a9
cmp dword [ebp + 0x10], 0
je 0x546a04
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x20]
sar edx, 2
test edx, edx
jbe 0x546a04
xor eax, eax
shl eax, 2
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x8c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0x8c]
mov edx, dword [eax]
call edx
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
je 0x546a04
mov ecx, dword [ebp - 0x10]
sub ecx, 0x2e0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0x2e0]
mov eax, dword [edx + 0x4c]
call eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x2e0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0x2e0]
mov edx, dword [eax + 0x50]
call edx
push 0
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x2e0
call fcn.00542570
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0x2b8], 0
je 0x546a76
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ecx, 1
jne 0x546a53
push 0
xor edx, edx
shl edx, 2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + edx]
push edx
push 1
push 0x580790
mov eax, dword [ebp - 0x10]
sub eax, 0x2e0
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0x2b8]
call fcn.004dc2b0
jmp 0x546a76
push 0
push 0
push 0
push 0x58079c
mov edx, dword [ebp - 0x10]
sub edx, 0x2e0
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0x2b8]
call fcn.004dc2b0
mov byte [ebp - 0x12], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00509310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00509310
mov al, byte [ebp - 0x12]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc