Function at 0x561e32
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72f5ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x184
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x168], ecx
push 0
mov ecx, 0x7b0988
call fcn.005e16a8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x561e77
jmp 0x56297c
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x168]
call fcn.005643a5
cmp dword [ebp - 0x30], 0
jne 0x561e9c
jmp 0x56297c
mov edx, dword [ebp - 0x168]
mov dword [edx + 0x2331c], 0
mov dword [ebp - 0x14], 0
push 0x10
call dword [sym.imp.USER32.DLL_GetKeyState]
movsx eax, ax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
and ecx, 0x80
test ecx, ecx
je 0x561ed7
mov edx, dword [ebp - 0x14]
or edx, 4
mov dword [ebp - 0x14], edx
push 0x11
call dword [sym.imp.USER32.DLL_GetKeyState]
movsx eax, ax
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
and ecx, 0x80
test ecx, ecx
je 0x561efb
mov edx, dword [ebp - 0x14]
or edx, 8
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x48]
add eax, 0x68
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x14]
and edx, 4
test edx, edx
je 0x56221f
mov eax, dword [ebp - 0x14]
and eax, 8
test eax, eax
je 0x56221f
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x78], 0
je 0x56221f
lea ecx, [ebp - 0x60]
call fcn.00433910
lea ecx, [ebp - 0x24]
call fcn.0042f190
push eax
lea ecx, [ebp - 0x40]
call fcn.0042f190
push eax
lea ecx, [ebp - 0x60]
call fcn.0042f220
mov dword [ebp - 0x74], 0
push 0x270
call fcn.004091b0
mov dword [ebp - 0xfc], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xfc], 0
je 0x561fa6
mov ecx, dword [ebp - 0xfc]
call fcn.005ea973
mov dword [ebp - 0x16c], eax
jmp 0x561fb0
mov dword [ebp - 0x16c], 0
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0xf8], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x74], eax
push 0xffffff
push 8
lea ecx, [ebp - 0x60]
call fcn.0042f1e0
push eax
lea ecx, [ebp - 0x60]
call fcn.0042f1c0
push eax
mov ecx, dword [ebp - 0x74]
call fcn.005eafc2
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x3c]
mov dword [ebp - 0x6c], edx
lea ecx, [ebp - 0x60]
call fcn.0042f1c0
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x60]
call fcn.0042f1e0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x50]
add eax, 4
push eax
call fcn.007090c9
add esp, 4
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x50]
add eax, 4
push eax
call fcn.007090c9
add esp, 4
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
mov dword [ebp - 0x104], ecx
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x70], edx
jmp 0x5620c7
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], edx
jmp 0x5620df
mov eax, dword [ebp - 0x6c]
add eax, 1
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x54]
jge 0x56217c
push 0xffffffffffffffff
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.005e73de
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x6c]
sub edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.005e73de
mov dword [ebp - 0x7c], 0
jmp 0x56213d
mov ecx, dword [ebp - 0x7c]
add ecx, 1
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
cmp edx, dword [ebp - 0x50]
jge 0x56215e
mov eax, dword [ebp - 0x70]
add eax, dword [ebp - 0x7c]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
je 0x56215c
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x7c]
mov byte [edx], 0xff
jmp 0x562134
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x6c]
sub edx, dword [ebp - 0x5c]
push edx
push 0
mov ecx, dword [ebp - 0x74]
call fcn.005e75c4
jmp 0x5620d6
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.007090f2
add esp, 4
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
push eax
call fcn.007090f2
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x118], 0
je 0x5621e5
push 1
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x118]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x178], eax
jmp 0x5621ef
mov dword [ebp - 0x178], 0
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00553b80
add esp, 8
lea ecx, [ebp - 0x60]
call fcn.00433910
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.0040e6b6
jmp 0x56297c
mov edx, dword [ebp - 0x14]
and edx, 8
test edx, edx
je 0x562548
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x78], 0
je 0x562548
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0xac]
call fcn.00433910
lea ecx, [ebp - 0x24]
call fcn.0042f190
push eax
lea ecx, [ebp - 0x40]
call fcn.0042f190
push eax
lea ecx, [ebp - 0xac]
call fcn.0042f220
mov dword [ebp - 0xb8], 0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0xb8], edx
lea ecx, [ebp - 0xac]
call fcn.0042f1c0
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0xac]
call fcn.0042f1e0
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x84]
add eax, 4
push eax
call fcn.007090c9
add esp, 4
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x84]
add eax, 4
push eax
call fcn.007090c9
add esp, 4
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0xb4], edx
jmp 0x562382
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], edx
jmp 0x5623a6
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
cmp ecx, dword [ebp - 0xa0]
jge 0x562496
push 0xffffffffffffffff
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0xb0]
sub ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0xac]
sub edx, dword [ebp - 0x94]
push edx
mov ecx, dword [ebp - 0xb8]
call fcn.005e73de
push 0xffffffffffffffff
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0xb0]
sub edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xac]
sub eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.005e73de
mov dword [ebp - 0x9c], 0
jmp 0x562431
mov ecx, dword [ebp - 0x9c]
add ecx, 1
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x9c]
cmp edx, dword [ebp - 0x84]
jge 0x562461
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0x9c]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
jne 0x56245f
mov edx, dword [ebp - 0x80]
add edx, dword [ebp - 0x9c]
mov byte [edx], 0xff
jmp 0x562422
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0xb0]
sub edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0xac]
sub eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0xb8]
call fcn.005e75c4
jmp 0x562397
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x130], edx
cmp dword [ebp - 0x130], 0
je 0x5624cf
push 1
mov ecx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x130]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0x184], eax
jmp 0x5624d9
mov dword [ebp - 0x184], 0
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.007090f2
add esp, 4
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
push eax
call fcn.007090f2
add esp, 4
lea ecx, [ebp - 0x94]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00553b80
add esp, 8
lea ecx, [ebp - 0x94]
call fcn.00433910
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.0040e6b6
jmp 0x56297c
mov ecx, dword [ebp - 0x14]
and ecx, 4
test ecx, ecx
je 0x562961
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x78], 0
je 0x562961
lea ecx, [ebp - 0xd4]
call fcn.00433910
lea ecx, [ebp - 0x24]
call fcn.0042f190
push eax
lea ecx, [ebp - 0x40]
call fcn.0042f190
push eax
lea ecx, [ebp - 0xd4]
call fcn.00482350
mov dword [ebp - 0xf0], 0
push 0x270
call fcn.004091b0
mov dword [ebp - 0x144], eax
mov dword [ebp - 4], 5
cmp dword [ebp - 0x144], 0
je 0x5625c8
mov ecx, dword [ebp - 0x144]
call fcn.005ea973
mov dword [ebp - 0x188], eax
jmp 0x5625d2
mov dword [ebp - 0x188], 0
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x140], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0xf0], ecx
push 0xffffff
push 8
lea ecx, [ebp - 0xd4]
call fcn.0042f1e0
push eax
lea ecx, [ebp - 0xd4]
call fcn.0042f1c0
push eax
mov ecx, dword [ebp - 0xf0]
call fcn.005eafc2
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xec], 0
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0xd4]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0xd0]
mov dword [ebp - 0xe8], eax
lea ecx, [ebp - 0x40]
call fcn.0042f1c0
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0x40]
call fcn.0042f1e0
mov dword [ebp - 0xd8], eax
lea ecx, [ebp - 0xd4]
call fcn.0042f1c0
mov dword [ebp - 0xdc], eax
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0xdc]
add ecx, 4
push ecx
call fcn.007090c9
add esp, 4
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xdc]
add ecx, 4
push ecx
call fcn.007090c9
add esp, 4
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x14c], edx
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0xec], eax
jmp 0x562736
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xe4], eax
jmp 0x562757
mov ecx, dword [ebp - 0xe4]
add ecx, 1
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe4]
cmp edx, dword [ebp - 0x34]
jge 0x5627b5
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xe4]
sub edx, dword [ebp - 0x3c]
push edx
push 0
mov ecx, dword [ebp - 0x44]
call fcn.005e73de
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xe4]
sub edx, dword [ebp - 0xd0]
push edx
mov eax, dword [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0xf0]
call fcn.005e75c4
jmp 0x562748
lea ecx, [ebp - 0x24]
call fcn.0042f1c0
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xe4], ecx
jmp 0x5627dd
mov edx, dword [ebp - 0xe4]
add edx, 1
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0x18]
jge 0x5628c5
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0xe4]
sub eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0xd4]
push ecx
mov ecx, dword [ebp - 0xf0]
call fcn.005e73de
push 0xffffffffffffffff
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0xe4]
sub ecx, dword [ebp - 0x20]
push ecx
push 0
mov ecx, dword [ebp - 0x30]
call fcn.005e73de
mov dword [ebp - 0xe0], 0
jmp 0x56285d
mov edx, dword [ebp - 0xe0]
add edx, 1
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xe0]
cmp eax, dword [ebp - 0xdc]
jge 0x562890
mov ecx, dword [ebp - 0xec]
add ecx, dword [ebp - 0xe0]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
jne 0x56288e
mov eax, dword [ebp - 0xc4]
add eax, dword [ebp - 0xe0]
mov byte [eax], 0
jmp 0x56284e
mov ecx, dword [ebp - 0xc4]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0xe4]
sub eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0xd4]
push ecx
mov ecx, dword [ebp - 0xf0]
call fcn.005e75c4
jmp 0x5627ce
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x158]
push eax
call fcn.007090f2
add esp, 4
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x15c]
push edx
call fcn.007090f2
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x160], ecx
cmp dword [ebp - 0x160], 0
je 0x562934
push 1
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x160]
mov eax, dword [edx]
call dword [eax + 4]
mov dword [ebp - 0x194], eax
jmp 0x56293e
mov dword [ebp - 0x194], 0
lea ecx, [ebp - 0xd4]
call fcn.00433910
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.0040e6b6
jmp 0x56297c
lea ecx, [ebp - 0x24]
call fcn.00433910
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.0040e6b6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret