Function at 0x10059d3f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
call fcn.100281a0
test eax, eax
jne 0x10059a96
xor eax, eax
jmp 0x1005a083
call fcn.10028330
mov dword [ebp - 0xc], eax
call fcn.10059450
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x200
ja 0x10059ae5
cmp dword [ebp - 0x10], 0x200
je 0x10059b0f
mov ecx, dword [ebp - 0x10]
sub ecx, 7
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0xfe
ja case.0x10059b08.14
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x1005a09c]
jmp dword [eax*4 + 0x1005a088]
mov ecx, dword [ebp - 0x10]
sub ecx, 0x201
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0xa2
ja case.0x10059b08.14
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x1005a1b8]
jmp dword [eax*4 + 0x1005a19c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 8]
test ecx, ecx
jne 0x10059b4f
mov dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x58], 2
mov edx, dword [ebp + 8]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 8], 1
jmp case.0x10059b08.14
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
cmp eax, dword [ebp + 8]
jne 0x10059b69
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x14]
mov byte [edx + 8], 0
jmp case.0x10059b08.14
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0x201
je 0x10059b8e
cmp dword [ebp + 0xc], 0x203
jne 0x10059b95
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0x204
je 0x10059ba7
cmp dword [ebp + 0xc], 0x206
jne 0x10059bae
mov dword [ebp - 0x18], 1
cmp dword [ebp + 0xc], 0x207
je 0x10059bc0
cmp dword [ebp + 0xc], 0x209
jne 0x10059bc7
mov dword [ebp - 0x18], 2
cmp dword [ebp + 0xc], 0x20b
je 0x10059bd9
cmp dword [ebp + 0xc], 0x20d
jne 0x10059c02
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
cmp ecx, 1
jne 0x10059bf5
mov dword [ebp - 0x20], 3
jmp 0x10059bfc
mov dword [ebp - 0x20], 4
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
call fcn.1002c410
movzx eax, al
test eax, eax
jne 0x10059c22
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x10059c22
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x18]
mov byte [edx + 0xe4], 1
xor eax, eax
jmp 0x1005a083
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0x202
jne 0x10059c4d
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0x205
jne 0x10059c5d
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0xc], 0x208
jne 0x10059c6d
mov dword [ebp - 0x1c], 2
cmp dword [ebp + 0xc], 0x20c
jne 0x10059c9f
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
cmp ecx, 1
jne 0x10059c92
mov dword [ebp - 0x24], 3
jmp 0x10059c99
mov dword [ebp - 0x24], 4
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
mov byte [eax + 0xe4], 0
call fcn.1002c410
movzx ecx, al
test ecx, ecx
jne 0x10059cc9
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x10059cc9
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
jmp 0x1005a083
mov edx, dword [ebp + 0x10]
shr edx, 0x10
and edx, 0xffff
movsx eax, dx
cvtsi2ss xmm0, eax
divss xmm0, dword [0x1011cb54]
mov ecx, dword [ebp - 0xc]
addss xmm0, dword [ecx + 0xec]
mov edx, dword [ebp - 0xc]
movss dword [edx + 0xec], xmm0
xor eax, eax
jmp 0x1005a083
mov eax, dword [ebp + 0x10]
shr eax, 0x10
and eax, 0xffff
movsx ecx, ax
cvtsi2ss xmm0, ecx
divss xmm0, dword [0x1011cb54]
mov edx, dword [ebp - 0xc]
addss xmm0, dword [edx + 0xf0]
mov eax, dword [ebp - 0xc]
movss dword [eax + 0xf0], xmm0
xor eax, eax
jmp 0x1005a083
cmp dword [ebp + 0xc], 0x100
je 0x10059d5a
cmp dword [ebp + 0xc], 0x104
je 0x10059d5a
mov dword [ebp - 0x28], 0
jmp 0x10059d61
mov dword [ebp - 0x28], 1
mov cl, byte [ebp - 0x28]
mov byte [ebp - 2], cl
cmp dword [ebp + 0x10], 0x100
jae 0x10059d7f
mov edx, dword [ebp - 0xc]
add edx, dword [ebp + 0x10]
mov al, byte [ebp - 2]
mov byte [edx + 0xf8], al
cmp dword [ebp + 0x10], 0x11
jne 0x10059e52
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x10059da8
mov dword [ebp - 0x2c], 1
jmp 0x10059daf
mov dword [ebp - 0x2c], 0
mov edx, 1
imul eax, edx, 0xa2
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x2c]
mov byte [ecx + eax + 0xf8], dl
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x10059de3
mov dword [ebp - 0x30], 1
jmp 0x10059dea
mov dword [ebp - 0x30], 0
mov ecx, 1
imul edx, ecx, 0xa3
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 0x30]
mov byte [eax + edx + 0xf8], cl
mov edx, 1
imul eax, edx, 0xa2
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + eax + 0xf8]
test edx, edx
jne 0x10059e3f
mov eax, 1
imul ecx, eax, 0xa3
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + ecx + 0xf8]
test eax, eax
jne 0x10059e3f
mov dword [ebp - 0x34], 0
jmp 0x10059e46
mov dword [ebp - 0x34], 1
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x34]
mov byte [ecx + 0xf4], dl
cmp dword [ebp + 0x10], 0x10
jne 0x10059f25
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x10059e78
mov dword [ebp - 0x38], 1
jmp 0x10059e7f
mov dword [ebp - 0x38], 0
mov ecx, 1
imul edx, ecx, 0xa0
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 0x38]
mov byte [eax + edx + 0xf8], cl
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x10059eb6
mov dword [ebp - 0x3c], 1
jmp 0x10059ebd
mov dword [ebp - 0x3c], 0
mov eax, 1
imul ecx, eax, 0xa1
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 0x3c]
mov byte [edx + ecx + 0xf8], al
mov ecx, 1
imul edx, ecx, 0xa0
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + edx + 0xf8]
test ecx, ecx
jne 0x10059f12
mov edx, 1
imul eax, edx, 0xa1
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + eax + 0xf8]
test edx, edx
jne 0x10059f12
mov dword [ebp - 0x40], 0
jmp 0x10059f19
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 0x40]
mov byte [eax + 0xf5], cl
cmp dword [ebp + 0x10], 0x12
jne 0x10059ffb
push 0xa4
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x10059f4e
mov dword [ebp - 0x44], 1
jmp 0x10059f55
mov dword [ebp - 0x44], 0
mov eax, 1
imul ecx, eax, 0xa4
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 0x44]
mov byte [edx + ecx + 0xf8], al
push 0xa5
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x10059f8c
mov dword [ebp - 0x48], 1
jmp 0x10059f93
mov dword [ebp - 0x48], 0
mov edx, 1
imul eax, edx, 0xa5
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 0x48]
mov byte [ecx + eax + 0xf8], dl
mov eax, 1
imul ecx, eax, 0xa4
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + ecx + 0xf8]
test eax, eax
jne 0x10059fe8
mov ecx, 1
imul edx, ecx, 0xa5
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + edx + 0xf8]
test ecx, ecx
jne 0x10059fe8
mov dword [ebp - 0x4c], 0
jmp 0x10059fef
mov dword [ebp - 0x4c], 1
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 0x4c]
mov byte [edx + 0xf6], al
xor eax, eax
jmp 0x1005a083
cmp dword [ebp + 0xc], 7
jne 0x1005a00e
mov byte [ebp - 1], 1
jmp 0x1005a012
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10024f20
xor eax, eax
jmp 0x1005a083
push 1
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp + 0x10]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx ecx, word [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10024dd0
jmp case.0x10059b08.14
mov edx, dword [ebp + 0x14]
and edx, 0xffff
movzx eax, dx
cmp eax, 1
jne 0x1005a06c
call fcn.10059770
movzx ecx, al
test ecx, ecx
je 0x1005a06c
mov eax, 1
jmp 0x1005a083
xor eax, eax
jmp 0x1005a083
cmp dword [ebp + 0x10], 7
jne 0x1005a07d
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x25], 1
xor eax, eax
jmp 0x1005a083
xor eax, eax
mov esp, ebp
pop ebp
ret