Function at 0x4581d0
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test dword [edi - 0x34], 0x2000
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x74], eax
je 0x4582a9
mov eax, dword [edi - 0x70]
lea ecx, [edi - 0x70]
mov dword [ebp - 0x78], ecx
mov eax, dword [eax + 0x1c]
call eax
mov esi, dword [ebp + 0x10]
test al, al
je 0x4582ac
cmp esi, 0x201
je 0x458259
cmp esi, 0x203
je 0x458259
cmp esi, 0xa1
je 0x458259
cmp esi, 0xa3
jne 0x45827a
push dword [ebp - 0x70]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x45827a
mov ecx, dword [ebp - 0x78]
push 0
mov eax, dword [ecx]
call dword [eax + 0x18]
mov al, 1
jmp 0x4587d6
cmp esi, 0x112
je 0x45829c
mov eax, dword [ebp - 0x70]
cmp dword [edi + 8], eax
jne 0x4582af
cmp esi, 6
jne 0x4582af
cmp word [ebp + 0x14], 0
jne 0x4582af
cmp dword [ebp - 0x6c], 0
jne 0x4582af
mov eax, dword [edi - 0x70]
lea ecx, [edi - 0x70]
push 0
call dword [eax + 0x18]
jmp 0x4582ac
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x70]
mov ecx, dword [edi + 8]
cmp ecx, eax
je 0x4582c9
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x4582c9
xor al, al
jmp 0x4587d6
mov ecx, dword [edi - 0x14]
test ecx, ecx
je 0x4582e6
cmp esi, 0x201
jne 0x4582e6
mov edx, dword [ecx]
lea eax, [edi - 0x70]
push eax
mov eax, dword [edx]
call eax
test al, al
jne 0x458273
cmp dword [edi - 0x10], 0
je 0x4583fb
cmp esi, 0x201
jne 0x4583fb
mov ecx, dword [ebp - 0x6c]
push dword [ebp - 0x7c]
movsx eax, cx
mov dword [ebp - 0x9c], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0x98], eax
lea eax, [edi - 0x70]
push eax
mov dword [ebp - 0x84], eax
call fcn.0046d680
add esp, 8
mov dword [ebp - 0x78], eax
test eax, eax
je 0x45849a
lea eax, [ebp - 0x4c]
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [ebp - 0x44], 1
jne 0x45849a
mov ecx, dword [edi - 0x10]
lea edx, [edi - 0x70]
lea esi, [ebp - 0x9c]
push esi
push dword [ebp - 0x78]
mov eax, dword [ecx]
push edx
mov eax, dword [eax]
call eax
mov esi, dword [ebp + 0x10]
test al, al
je 0x45849a
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
mov dword [esi + 0xa0], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x78]
mov dword [esi + 0xa4], ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push dword [esi + 0x78]
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ecx
call dword [sym.imp.USER32.dll_SetCapture]
push dword [esi + 0xb0]
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esi + 0xb4], eax
mov al, 1
mov byte [esi + 0x9d], 1
jmp 0x4587d6
cmp esi, 0x100
je 0x45840f
cmp esi, 0x104
jne 0x45849a
cmp dword [edi - 8], 0
je 0x458470
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and eax, 0xffffff01
push 0x11
mov dword [ebp - 0x84], eax
call esi
mov edx, dword [ebp - 0x6c]
mov ecx, dword [edi - 8]
shr eax, 0xf
shr edx, 0x10
and eax, 0xffffff01
mov dword [ebp - 0x78], eax
movzx eax, byte [ebp + 0x14]
mov esi, dword [ecx]
mov dword [ebp - 0x98], edx
and edx, 0x100
or edx, eax
push edx
push dword [ebp - 0x84]
push dword [ebp - 0x78]
call dword [esi]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x98]
jmp 0x458476
mov ecx, dword [ebp - 0x6c]
shr ecx, 0x10
mov edx, dword [edi + 0x48]
test edx, edx
je 0x45849a
movzx eax, byte [ebp + 0x14]
and ecx, 0x100
or ecx, eax
push ecx
lea ecx, [edx + 0x78]
call fcn.00474a60
test al, al
jne 0x458718
lea eax, [edi + 4]
cmp dword [ebp - 0x7c], eax
jne 0x4582c2
cmp esi, 0x111
ja 0x45865a
je 0x4585db
lea eax, [esi - 5]
cmp eax, 0x1f
ja case.0x4584cb.7
movzx eax, byte [eax + 0x458810]
jmp dword [eax*4 + 0x4587f4]
mov edx, dword [ebp - 0x74]
mov al, 1
mov dword [edx], 1
jmp 0x4587d6
mov esi, dword [ebp - 0x70]
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x24], esi
lea eax, [edi - 0x70]
mov dword [ebp - 4], 0
push eax
call fcn.0046d380
push dword [ebp - 0x70]
mov esi, eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00457930
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 0x94], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x90], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x20]
push esi
mov dword [ebp - 0x8c], ecx
movups xmm0, xmmword [ebp - 0x94]
push eax
push dword [ebp - 0x68]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_FillRect]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_EndPaint]
mov edx, dword [ebp - 0x74]
mov al, 1
mov dword [edx], 1
jmp 0x4587d6
mov eax, dword [edi - 0x70]
lea ecx, [edi - 0x70]
call dword [eax + 0xa0]
jmp case.0x4584cb.7
xor eax, eax
lea ecx, [edi - 0x70]
cmp word [ebp + 0x14], ax
sete al
add eax, 4
push eax
push ecx
call fcn.0046a040
jmp case.0x4584cb.7
lea ecx, [edi - 0x70]
call fcn.004634b0
mov edx, dword [ebp - 0x74]
mov al, 1
mov dword [edx], 0
jmp 0x4587d6
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x4585c7
cmp dword [edi + 0x28], eax
je case.0x4584cb.7
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x28]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x14]
jmp 0x45879c
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x4585f5
push dword [ebp + 0x14]
add ecx, 0x78
call fcn.00474820
test al, al
jne 0x458273
mov eax, dword [ebp + 0x14]
movzx esi, ax
shr eax, 0x10
test eax, eax
jne 0x4582c2
cmp esi, 1
je 0x45864a
cmp esi, 2
jne 0x458623
mov eax, 1
lea ecx, [edi - 0x70]
push eax
call fcn.00463640
jmp 0x4587d6
mov eax, dword [edi - 0x20]
test eax, eax
je 0x4582c2
push 1
push eax
call fcn.0046d900
add esp, 8
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp esi, eax
jne 0x4582c2
xor eax, eax
lea ecx, [edi - 0x70]
push eax
call fcn.00463640
jmp 0x4587d6
cmp esi, 0x215
ja 0x458742
je 0x458728
mov eax, esi
sub eax, 0x112
je 0x458700
sub eax, 0xee
je 0x4586ab
sub eax, 2
jne case.0x4584cb.7
cmp byte [edi + 0x2d], al
je case.0x4584cb.7
mov byte [edi + 0x2d], al
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_SetCursor]
mov al, 1
jmp 0x4587d6
cmp byte [edi + 0x2d], 0
mov ecx, dword [ebp - 0x6c]
je 0x4585d3
movsx eax, cx
mov dword [ebp - 0x80], eax
shr ecx, 0x10
movsx eax, cx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [edi + 0x3c]
sub eax, dword [edi + 0x34]
add eax, dword [ebp - 0x7c]
push 1
push 0
push 0
push eax
mov eax, dword [edi + 0x38]
sub eax, dword [edi + 0x30]
add eax, dword [ebp - 0x80]
push eax
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov al, 1
jmp 0x4587d6
mov eax, dword [ebp + 0x14]
cmp eax, 0xf060
jne 0x458799
test byte [edi - 0x34], 4
je 0x458799
mov edx, dword [ebp - 0x74]
mov al, 1
mov dword [edx], 0
jmp 0x4587d6
cmp byte [edi + 0x2d], 0
je case.0x4584cb.7
push dword [edi + 0x44]
mov byte [edi + 0x2d], 0
call dword [sym.imp.USER32.dll_SetCursor]
mov al, 1
jmp 0x4587d6
cmp esi, 0x31a
je 0x45877e
cmp esi, 0x400
jne case.0x4584cb.7
mov eax, dword [edi - 0x20]
test eax, eax
je case.0x4584cb.7
push 1
push eax
call fcn.0046d900
add esp, 8
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [ebp - 0x74]
movzx eax, ax
or eax, 0x534b0000
mov dword [edx], eax
mov al, 1
jmp 0x4587d6
mov eax, dword [edi - 0x70]
lea esi, [edi - 0x70]
mov ecx, esi
call dword [eax + 0x54]
push 7
push esi
mov ecx, esi
call fcn.0046a040
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x6c]
test byte [edi - 0x34], 0x10
jne 0x4587bc
mov edx, dword [ebp - 0x74]
push edx
push ecx
push eax
push esi
push dword [ebp - 0x70]
lea ecx, [edi + 4]
call fcn.004cf820
test al, al
jne 0x458273
push dword [ebp - 0x74]
lea eax, [edi + 4]
push dword [ebp - 0x6c]
push dword [ebp + 0x14]
push esi
push eax
lea eax, [edi - 0x70]
push eax
call fcn.0046d9f0
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret 0x18