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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
movsx edi, ax
shr eax, 0x10
movsx ebx, ax
mov eax, dword [esi + 0xbc]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], ebx
je 0x500c73
cmp dword [esi + 0xc0], edi
jne 0x500bce
cmp dword [esi + 0xc4], ebx
je 0x500c73
push 1
call dword [0x523744]
shr eax, 8
test al, al
je 0x500c73
mov eax, dword [esi + 0x10c]
cmp eax, 0xffffffff
je 0x500c73
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esi + 0x114], ebp
call dword [edx + 0x7c]
cmp eax, ebp
mov dword [esi + 0xbc], ebp
jne 0x500f0c
mov dword [esi + 0x114], 1
call dword [0x5239e4]
lea eax, [esp + 0x14]
push eax
call dword [0x5238b0]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x523880]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x38]
and edi, 0xffff
shl edi, 0x10
and eax, 0xffff
or edi, eax
cmp ebx, 5
je 0x500c60
mov edx, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [edx + 0x60]
mov eax, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [eax + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov edx, dword [esi]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [edx + 0x54]
cmp dword [esi + 0xec], ebp
je 0x500c93
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esi + 0x28]
call fcn.00505870
mov ebp, dword [0x5238ac]
push ebx
lea edx, [esi + 0x358]
push edi
push edx
call ebp
test eax, eax
je 0x500d26
push 2
lea ecx, [esi + 4]
call fcn.0050a9e0
cmp byte [esi + 0x1f4], 1
je 0x500f0c
mov eax, dword [esi + 0x114]
mov byte [esi + 0x1f4], 1
test eax, eax
je 0x500cd7
mov byte [esi + 0x1f4], 2
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi + 0x10c]
mov dword [esi + 0x10c], 0xffffffff
cmp eax, 0xffffffff
je 0x500cfd
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [esi + 0x114]
test eax, eax
je 0x500f0c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x60]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
cmp byte [esi + 0x1f4], 4
je 0x500d3f
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1f4], 4
call dword [eax + 0x34]
push ebx
lea ecx, [esp + 0x28]
push edi
push ecx
call ebp
test eax, eax
je 0x500f05
push 2
lea ecx, [esi + 4]
call fcn.0050a9e0
mov eax, dword [esi + 0x104]
mov edx, dword [esi + 0x10c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xe8]
cmp eax, 0xffffffff
mov dword [esp + 0x10], edx
mov dword [esi + 0x10c], 0xffffffff
je 0x500d87
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
jle 0x500e9c
mov ecx, dword [esi + 0x100]
mov edx, dword [esi + 0xfc]
mov ebp, dword [ecx + ebx*4]
mov edi, ebp
shl edi, 7
add edi, ebp
shl edi, 2
mov cl, byte [edx + edi + 0x44]
lea eax, [edx + edi]
test cl, 8
jne 0x500df2
mov ecx, dword [eax + 0x1a0]
test ecx, ecx
je 0x500df2
test byte [eax + 0x48], 4
jne 0x500df2
mov ecx, dword [esp + 0x20]
add eax, 0x1a8
push ecx
movsx ecx, word [esp + 0x40]
push ecx
push eax
call dword [0x5238ac]
test eax, eax
je 0x500df2
mov edx, dword [esi + 0xfc]
test byte [edx + edi + 0x48], 1
je 0x500e00
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x500d95
jmp 0x500e9c
mov ecx, dword [esi + 0xfc]
mov eax, ebp
shl eax, 7
add eax, ebp
test dword [ecx + eax*4 + 0x48], 0x100000
je 0x500e4f
mov al, byte [0x58e444]
test al, 1
jne 0x500e3f
mov dl, al
push 0x7f89
or dl, 1
push 0
mov byte [0x58e444], dl
call dword [0x5238a4]
mov dword [0x58e440], eax
jmp 0x500e44
mov eax, dword [0x58e440]
test eax, eax
je 0x500e4f
push eax
call dword [0x5238a0]
mov edi, dword [esp + 0x10]
mov dword [esi + 0x10c], ebp
cmp ebp, edi
je 0x500f0c
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [esi + 0xec]
test eax, eax
je 0x500e7f
mov eax, dword [esi + 8]
lea ecx, [esi + 0x28]
push eax
call fcn.00505800
cmp edi, 0xffffffff
je 0x500e9c
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10c]
cmp ecx, eax
je 0x500e9c
mov edx, dword [esi]
mov eax, ecx
push eax
mov ecx, esi
call dword [edx + 0x34]
cmp dword [esi + 0x10c], 0xffffffff
jne 0x500ed6
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x500eb6
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [esi + 0xec]
test eax, eax
je 0x500f0c
mov eax, dword [esi + 8]
lea ecx, [esi + 0x28]
push eax
call fcn.00505800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov eax, dword [esi + 0x114]
test eax, eax
je 0x500f0c
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x500f0c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x74]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8