Function at 0x10059c20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b01d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100dbc1c]
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
mov dword [ebp - 0x30], edi
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], eax
jne 0x1005a45b
mov esi, dword [ebp + 0xc]
cmp esi, 1
jne 0x10059cca
lea eax, [ebp - 0x20]
mov dword [edi + 0x28], esi
push eax
push dword [edi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movups xmm0, xmmword [ebp - 0x20]
push 0
sub esp, 0x10
mov ecx, edi
mov eax, esp
neg ecx
sbb ecx, ecx
push 0xffffffffffffffff
movups xmmword [eax], xmm0
lea eax, [edi + 0x24]
and ecx, eax
push ecx
push dword [edi + 4]
mov ecx, dword [edi + 0x44]
call fcn.1000c360
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [edi + 0x24]
lea eax, [edi + 0x24]
push esi
push 0
push eax
call dword [ecx + 0x20]
jmp 0x10059e29
cmp esi, 2
jne 0x10059da8
mov eax, dword [sym.imp.USER32.dll_IsWindow]
mov dword [edi + 0x28], 1
cmp dword [edi + 0x4c], 0
je 0x10059d64
push dword [edi + 4]
call eax
test eax, eax
je 0x10059d57
mov eax, dword [edi + 0x48]
mov esi, dword [eax]
cmp esi, eax
je 0x10059d57
nop word [eax + eax]
push dword [esi + 0x10]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [esi + 0xd], 0
jne 0x10059d52
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10059d33
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10059d52
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10059d25
jmp 0x10059d52
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10059d50
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x10059d50
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10059d40
mov esi, eax
cmp esi, dword [edi + 0x48]
jne 0x10059d00
lea ecx, [edi + 0x48]
call fcn.1004b240
mov eax, dword [sym.imp.USER32.dll_IsWindow]
push dword [edi + 0x50]
call eax
test eax, eax
je 0x10059d81
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x10059d81
mov dword [edi + 0x50], 0
lea ecx, [edi + 0x54]
mov dword [edi + 0x50], 0
call fcn.1000a6b0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [edi + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
jmp 0x10059e29
cmp esi, 5
jne 0x10059dfe
movsx ecx, dx
mov eax, edx
shr eax, 0x10
sub esp, 0x10
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x44]
cwde
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [edi + 0x28], 1
mov edx, dword [ecx]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [ebp - 0x20]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0xac]
movups xmm0, xmmword [ebp - 0x20]
mov edx, dword [edi]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call dword [edx + 0x18]
jmp 0x10059e29
cmp esi, 0x113
jne 0x10059eaf
mov eax, dword [edi + 0x44]
mov esi, dword [ebp - 0x38]
mov dword [edi + 0x28], 1
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xb0]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x1005a0b3
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
movzx ecx, si
movzx edx, cx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], edx
cmp eax, 0x2a1
jne 0x1005a1e7
mov eax, esi
mov dword [edi + 0x28], 1
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
push esi
movsx edi, cx
push edi
mov eax, dword [eax + 0x44]
push dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
movzx edx, ax
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x1005a0b3
mov esi, dword [ebp - 0x40]
jmp 0x1005a380
cmp esi, 0x84
jne 0x1005a00f
mov eax, edx
movsx ecx, dx
shr eax, 0x10
xor esi, esi
cwde
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x28], 1
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x10059efc
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [ebp - 0x18]
mov esi, eax
mov eax, dword [ebp - 0x14]
jmp 0x10059eff
mov eax, dword [ebp - 0x3c]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x40]
cmp esi, 1
jne 0x10059ff6
cmp dword [edi + 0x68], 0
je 0x10059ff6
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [edi + 0x44]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
test eax, eax
je 0x10059f4f
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
test eax, eax
je 0x10059ff6
push 1
mov esi, 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x10059f8b
cmp dword [edi + 0x58], 0
jne 0x10059f91
push 1
push 0
push 0x3401
push dword [edi + 4]
mov dword [edi + 0x58], 1
mov dword [edi + 0x5c], 0
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10059fa5
cmp dword [edi + 0x58], 0
je 0x10059fa5
cmp dword [edi + 0x5c], 0
jne 0x10059fa5
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 1
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test eax, 0x8000
je 0x10059fdc
cmp dword [edi + 0x60], 0
jne 0x10059fe2
push 1
push 1
push 0x3401
push dword [edi + 4]
mov dword [edi + 0x60], 1
mov dword [edi + 0x5c], 0
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x10059ff6
cmp dword [edi + 0x60], 0
je 0x10059ff6
cmp dword [edi + 0x5c], 0
jne 0x10059ff6
mov dword [edi + 0x60], 0
mov dword [edi + 0x5c], 1
mov ecx, dword [ebp - 0x34]
mov dword [ecx], esi
cmp dword [edi + 0x28], 0
je 0x10059e3c
mov eax, 1
jmp 0x1005a45d
cmp esi, 0x20
jne 0x1005a088
mov ecx, dword [edi + 0x44]
mov esi, edx
mov dword [edi + 0x28], 1
lea edi, [ebp - 0x3c]
push edi
shr esi, 0x10
push esi
movzx eax, dx
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
mov edx, dword [ecx]
push ecx
call dword [edx + 0xb8]
cmp dword [ebp - 0x3c], 0
mov edi, dword [ebp - 0x30]
je 0x1005a04f
mov edx, 1
jmp 0x1005a06f
mov eax, dword [edi + 0x18]
xor edx, edx
test eax, eax
je 0x1005a06f
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [edi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov edx, eax
mov ecx, dword [ebp - 0x34]
mov dword [ecx], edx
cmp dword [edi + 0x28], 0
je 0x10059e3c
mov eax, 1
jmp 0x1005a45d
cmp esi, 0x14
jne 0x1005a09b
mov dword [eax], 1
lea eax, [esi - 0x13]
jmp 0x1005a45d
cmp esi, 0xf
jne 0x1005a0bd
lea eax, [ebp - 0x3c]
push eax
push edx
push ecx
push esi
mov ecx, edi
call fcn.10056a00
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, 1
jmp 0x1005a45d
cmp esi, 0x318
jne 0x1005a0ce
lea eax, [ebp - 0x3c]
push eax
push edx
push ecx
push esi
jmp 0x1005a0a7
cmp esi, 0x3400
jne 0x1005a111
push 0
call fcn.1000c120
mov esi, dword [ebp - 0x40]
add esp, 4
push 0
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
test esi, esi
je 0x1005a0fe
push 0x10
push esi
call fcn.10076048
add esp, 8
mov ecx, dword [ebp - 0x34]
mov eax, 1
mov dword [ecx], 0
jmp 0x1005a45d
lea eax, [esi - 0x200]
cmp eax, 0xe
ja 0x1005a167
mov eax, dword [edi + 4]
xorps xmm0, xmm0
push dword [edi + 0x50]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005a15b
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x407
push dword [edi + 0x50]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
mov dword [ecx], 1
cmp esi, 0x200
jne 0x10059e3c
movzx eax, dx
mov ecx, eax
mov dword [edi + 0x28], 1
movsx edi, ax
mov eax, edx
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x3c], ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xbc]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x20]
cmp dword [edi + 0x40], 0
je 0x1005a1c4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
mov dword [edi + 0x40], 0
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
movzx edx, ax
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
je 0x10059ea7
mov eax, 1
jmp 0x1005a45d
cmp eax, 0x2a3
jne 0x1005a238
cmp dword [edi + 0x40], 0
mov dword [edi + 0x28], 1
jne 0x1005a218
mov eax, dword [edi + 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x40], 1
mov ecx, dword [ebp - 0x34]
movzx edx, dx
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
je 0x1005a380
mov eax, 1
jmp 0x1005a45d
movzx edx, dx
cmp eax, 0x201
jne 0x1005a37d
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x28], 1
movsx edi, ax
mov eax, esi
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
push edx
push esi
push edi
mov eax, dword [eax + 0x44]
push dword [ebp - 0x38]
mov dword [ebp - 0x14], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x1005a0b3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x3c]
cmp eax, 0x203
jne 0x1005a3ff
mov eax, dword [ebp - 0x40]
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x28], 1
movsx edi, dx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [eax + 0x44]
push esi
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x14], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd0]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x34]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x1005a0b3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x3c]
cmp eax, 0x205
jne 0x1005a44e
mov eax, dword [ebp - 0x40]
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x28], 1
movsx edi, dx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [eax + 0x44]
push esi
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x40], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd8]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ecx], 0
cmp dword [eax + 0x28], 0
je 0x1005a45b
mov eax, 1
jmp 0x1005a45d
mov ecx, dword [ebp - 0x34]
movzx eax, dx
movzx edx, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edx
cmp eax, 0x202
jne 0x1005a2ae
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
mov dword [edi + 0x28], 1
movsx edi, ax
mov eax, esi
shr eax, 0x10
movsx esi, ax
mov eax, dword [ebp - 0x30]
push edx
push esi
push edi
mov eax, dword [eax + 0x44]
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
mov edi, ecx
call dword [eax + 0x30]
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
movzx edx, ax
mov dword [ecx], 0
cmp dword [edi + 0x28], 0
jne 0x1005a0b3
mov eax, dword [ebp + 0xc]
cmp eax, 0x204
jne 0x1005a313
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x28], 1
movsx edi, dx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [eax + 0x44]
shr esi, 0x10
movsx esi, si
push esi
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xd4]
mov ecx, dword [ebp - 0x30]
push esi
push edi
push dword [ebp - 0x38]
mov eax, dword [ecx]
call dword [eax + 0x38]
jmp 0x1005a35d
cmp eax, 0x31a
jne 0x1005a45b
mov dword [ecx], 0
xor eax, eax
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.100763b4
mov esp, ebp
pop ebp
ret 0x18