Function at 0x501980
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5206ae
mov eax, dword fs:[0]
push eax
sub esp, 0x370
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x37c]
mov ecx, 0xdc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x540cac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00462114
cwde
test eax, eax
jl 0x501a25
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00462114
cwde
test eax, eax
jl 0x501a25
mov ecx, dword [ebp - 0x18]
call fcn.004619e4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x17c], 0
mov ecx, dword [ebp - 0x24]
add ecx, 0x180
call fcn.004606de
mov ecx, dword [ebp - 0x24]
add ecx, 0x12c
call fcn.00462c4a
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x8c], 0
jne 0x501a47
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x90], 0
jne 0x501a47
jmp 0x502177
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x94]
mov edx, dword [eax + 0x98]
mov dword [ebp - 0x36c], ecx
mov dword [ebp - 0x368], edx
mov eax, dword [ebp - 0x368]
push eax
mov ecx, dword [ebp - 0x36c]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x8c
call fcn.00462047
test eax, eax
je 0x501ab2
mov esi, esp
push 0
push 0x270f
push 0x111
mov ecx, dword [ebp + 0x14]
call fcn.0046256f
mov ecx, eax
call fcn.00460ab7
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, esp
call fcn.00462114
jmp 0x502162
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0x9c]
test ecx, ecx
jne 0x501ac5
jmp 0x502177
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x9c], 0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x40]
call fcn.0046035f
mov dword [ebp - 4], 0
push 1
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.004616c4
lea ecx, [ebp - 0x50]
call fcn.00461f8e
mov byte [ebp - 4], 1
push 0xd
lea ecx, [ebp - 0x40]
call fcn.00461ac0
push 0xffffff
push 1
push 0
lea ecx, [ebp - 0x50]
call fcn.00462a92
push 6
lea ecx, [ebp - 0x40]
call fcn.00461ac0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x40]
call fcn.00462597
mov dword [ebp - 0x5c], eax
push 5
lea ecx, [ebp - 0x40]
call fcn.0045e771
push 5
lea ecx, [ebp - 0x40]
call fcn.0045e771
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x94]
mov edx, dword [eax + 0x98]
mov dword [ebp - 0x35c], ecx
mov dword [ebp - 0x358], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x90]
mov dword [ebp - 0x34c], ecx
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x358]
push eax
mov ecx, dword [ebp - 0x35c]
push ecx
mov edx, dword [ebp - 0x348]
push edx
mov eax, dword [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x290]
call fcn.00461e30
mov ecx, eax
call fcn.00460b75
push eax
lea ecx, [ebp - 0x40]
call fcn.004621ff
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00462597
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x33c]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.004604db
mov ecx, dword [ebp - 0x18]
add ecx, 0xa0
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
fldz
fstp dword [ebp - 0x68]
fldz
fstp dword [ebp - 0x74]
fldz
fstp dword [ebp - 0x80]
fldz
fstp dword [ebp - 0x8c]
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xac]
mov ecx, dword [ebp - 0x18]
fld dword [ecx + 0xa0]
fcompp
fnstsw ax
test ah, 5
jp 0x501c39
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xac]
fstp dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xa0]
fstp dword [ebp - 0x80]
jmp 0x501c51
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xa0]
fstp dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xac]
fstp dword [ebp - 0x80]
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xb0]
mov ecx, dword [ebp - 0x18]
fld dword [ecx + 0xa4]
fcompp
fnstsw ax
test ah, 5
jp 0x501c89
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xb0]
fstp dword [ebp - 0x74]
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xa4]
fstp dword [ebp - 0x8c]
jmp 0x501ca4
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xa4]
fstp dword [ebp - 0x74]
mov eax, dword [ebp - 0x18]
fld dword [eax + 0xb0]
fstp dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x18]
call fcn.004619e4
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp + 0x14]
call fcn.00462b0a
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x501ce9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00460085
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004627db
jmp 0x502177
mov dword [ebp - 0xb0], 0
jmp 0x501d04
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x28
call fcn.0046286c
cmp dword [ebp - 0xb0], eax
jae 0x502003
lea ecx, [ebp - 0x160]
call fcn.0045eb68
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xa4]
add ecx, 0x28
call fcn.00462051
mov ecx, 0x2a
mov esi, eax
lea edi, [ebp - 0x160]
rep movsd dword es:[edi], dword [esi]
mov esi, esp
lea ecx, [ebp - 0x174]
call dword [0x543c1c]
cmp esi, esp
call fcn.00462114
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x170], ecx
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x16c], edx
fld dword [ebp - 0x174]
fld dword [ebp - 0x80]
fcompp
fnstsw ax
test ah, 5
jp 0x501ffe
fld dword [ebp - 0x174]
fld dword [ebp - 0x68]
fcompp
fnstsw ax
test ah, 0x41
jne 0x501ffe
fld dword [ebp - 0x170]
fld dword [ebp - 0x74]
fcompp
fnstsw ax
test ah, 0x41
jne 0x501ffe
fld dword [ebp - 0x170]
fld dword [ebp - 0x8c]
fcompp
fnstsw ax
test ah, 5
jp 0x501ffe
mov esi, esp
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00462114
cwde
test eax, eax
jge 0x501fbe
mov ecx, dword [ebp - 0x18]
call fcn.004619e4
mov dword [ebp - 0x180], eax
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x160]
mov dword [eax], ecx
mov edx, dword [ebp - 0x15c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x158]
mov dword [eax + 8], ecx
lea edx, [ebp - 0x328]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0045e546
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00461f39
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0xffffffff
je 0x501fbc
mov eax, dword [ebp - 0x18c]
push eax
mov ecx, dword [ebp - 0x180]
add ecx, 0x12c
call fcn.00461246
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x180]
add ecx, 0x180
call fcn.004615d9
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x180]
add ecx, 0x180
call fcn.0045f581
mov dword [ebp - 0x374], eax
mov ecx, dword [ebp - 0x374]
mov dword [ebp - 0x378], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x378]
push edx
lea ecx, [ebp - 0x1a0]
call fcn.0045e15e
mov byte [ebp - 0x315], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30c]
call fcn.0045e8ac
movzx eax, byte [ebp - 0x315]
test eax, eax
je 0x501f98
lea ecx, [ebp - 0x1a0]
call fcn.0045ed0c
mov ecx, dword [ebp - 0xb0]
cmp ecx, dword [eax]
jne 0x501f74
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x2f8], esp
lea eax, [ebp - 0x1a0]
push eax
call fcn.0045f365
mov dword [ebp - 0x374], eax
lea ecx, [ebp - 0x2ec]
push ecx
mov ecx, dword [ebp - 0x180]
add ecx, 0x180
call fcn.00460e72
mov dword [ebp - 0x378], eax
mov edx, dword [ebp - 0x378]
mov dword [ebp - 0x37c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.004620ab
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2ec]
call fcn.0045e8ac
jmp 0x501f93
push 0
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.0045eebf
lea ecx, [ebp - 0x2d8]
call fcn.0045e8ac
jmp 0x501e8d
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.004619e4
mov ecx, eax
call fcn.004611f1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a0]
call fcn.0045e8ac
jmp 0x501ffe
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x98]
add ecx, 0x12c
call fcn.0046044f
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c4], eax
lea ecx, [ebp - 0x2c4]
push ecx
mov ecx, dword [ebp - 0x98]
add ecx, 0x180
call fcn.004604e0
jmp 0x501cf5
mov eax, dword [ebp - 0x98]
mov dword [eax + 0x17c], 2
mov ecx, dword [ebp - 0x98]
add ecx, 0x180
call fcn.0045f653
cmp eax, 1
jne 0x502147
mov esi, esp
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cmp esi, esp
call fcn.00462114
cwde
test eax, eax
jl 0x502147
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.004619e4
mov ecx, eax
call fcn.004611f1
push 0
mov ecx, dword [ebp - 0x98]
add ecx, 0x154
call fcn.00462051
sub esp, 0xc
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.0045e546
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00461f39
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1b8], eax
push 0x1f8
call fcn.0045f874
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x29c], 0
je 0x5020e4
mov ecx, dword [ebp - 0x29c]
call fcn.00461bdd
mov dword [ebp - 0x374], eax
jmp 0x5020ee
mov dword [ebp - 0x374], 0
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2a8]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00461778
lea eax, [ebp - 0x1b8]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0045fe9b
mov eax, dword [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0045eeb5
mov ecx, eax
call fcn.004611ce
push 0
push 1
push 0
mov ecx, dword [ebp - 0x18]
call fcn.004619e4
mov ecx, eax
call fcn.004611f1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00460085
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004627db
push 0
push 1
push 0
mov ecx, dword [ebp - 0x18]
call fcn.004619e4
mov ecx, eax
call fcn.004611f1
push edx
mov ecx, ebp
push eax
lea edx, [0x5021b4]
call fcn.0045eab4
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046094f
add esp, 0x37c
cmp ebp, esp
call fcn.00462114
mov esp, ebp
pop ebp
ret 0x10