Function at 0x10059360
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x10205218
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
push 0x17
mov esi, 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x100593a1
mov esi, 1
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov bx, ax
mov eax, dword [ebp + 0x20]
shr bx, 0xf
xor edi, edi
and bl, 1
cmp eax, edi
je 0x100593e0
mov eax, dword [eax + 4]
cmp eax, edi
je 0x100593cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x100593e0
mov ecx, dword [ebp + 0x20]
cmp ecx, edi
je 0x100593dd
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [ebp + 0x20], edi
cmp dword [ebp + 0x20], edi
je 0x10059417
test bl, bl
je 0x10059401
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
mov eax, ebp
call fcn.10059110
mov al, 1
jmp 0x1005966c
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
mov esi, ebp
call fcn.10059690
jmp 0x1005966a
test bl, bl
je 0x1005966a
mov esi, dword [ebp + 4]
cmp esi, edi
mov dword [esp + 0x18], esi
je 0x10059432
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov dword [esp + 0x38], edi
cmp esi, edi
je 0x10059449
mov edx, dword [esi]
mov eax, dword [edx + 0x74]
mov ecx, esi
call eax
mov edi, eax
test edi, edi
jne 0x10059465
mov eax, ebp
call fcn.10059180
mov dword [esp + 0x38], 0xffffffff
test esi, esi
je 0x1005966a
jmp 0x10059661
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x10059652
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10059652
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10059652
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, ebx
mov dword [esp + 0x40], eax
je 0x100594d0
cmp eax, edi
je 0x100594d0
push eax
push ebx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x10059652
cmp dword [ebp + 0x18], edi
jne 0x100594da
cmp dword [ebp + 0x1c], ebx
je 0x100594e1
mov eax, ebp
call fcn.10059180
lea ecx, [esp + 0x48]
push ecx
push edi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebp + 0x2c], 0
jne 0x10059522
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
mov eax, ebp
call fcn.10059050
mov dword [esp + 0x38], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov al, 1
jmp 0x1005966c
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
push ebp
call fcn.10058e80
test al, al
je 0x1005950a
mov eax, dword [esp + 0x40]
push eax
call fcn.101c69e0
add esp, 4
test al, al
jne 0x10059652
xor edi, edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x38], 1
call fcn.101a7380
mov ebx, dword [eax + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x1005956e
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
mov byte [esp + 0x38], 2
test ebx, ebx
je 0x10059625
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov ecx, ebx
call eax
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
je 0x1005959a
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov byte [esp + 0x38], 3
test esi, esi
je 0x1005960f
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov edi, eax
lea esi, [esp + 0x40]
call fcn.100b68e0
mov edi, dword [esp + 0x40]
test edi, edi
je 0x1005960b
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
push ecx
mov eax, esp
mov dword [eax], edi
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
mov dword [esp + 0x30], esp
call edx
mov byte [esp + 0x44], 4
push ebp
mov byte [esp + 0x48], 3
call fcn.100591e0
test al, al
je 0x1005960b
mov eax, dword [esp + 0x44]
push 0
push 0xbb8
push 3
push 0
push 0
push 0x528
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov esi, dword [esp + 0x14]
mov byte [esp + 0x38], 2
test esi, esi
je 0x10059621
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov esi, dword [esp + 0x18]
mov byte [esp + 0x38], 1
test ebx, ebx
je 0x10059637
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov byte [esp + 0x38], 0
test edi, edi
je 0x1005950a
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
jmp 0x1005950a
mov eax, ebp
call fcn.10059180
mov dword [esp + 0x38], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10