Function at 0x10038a04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x1005200c]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov edi, dword [0x100cbe88]
mov dword [esp + 8], ecx
test edi, edi
je case.0x1003919b.527
mov esi, dword [edi + 0x74]
lea eax, [edi + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x54], esi
cmp edx, 0x200
ja 0x10039183
je 0x1003906f
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x1003919b.527
movzx eax, byte [eax + 0x10039394]
jmp dword [eax*4 + 0x1003937c]
cmp edx, 0x100
je 0x10038a19
mov byte [esp + 0x54], 0
cmp edx, 0x104
jne 0x10038a1e
mov byte [esp + 0x54], 1
mov esi, dword [ebp + 8]
cmp esi, 0x100
jae case.0x1003919b.527
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [esp + 8], al
je 0x10038a4a
movss xmm3, dword [0x1004fb00]
jmp 0x10038a4d
xorps xmm3, xmm3
push dword [esp + 8]
mov edi, dword [esp + 0x10]
mov ecx, edi
push 0x281
call fcn.100064c0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [esp + 8], al
je 0x10038a7e
movss xmm3, dword [0x1004fb00]
jmp 0x10038a81
xorps xmm3, xmm3
push dword [esp + 8]
mov ecx, edi
push 0x282
call fcn.100064c0
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [esp + 8], al
je 0x10038aae
movss xmm3, dword [0x1004fb00]
jmp 0x10038ab1
xorps xmm3, xmm3
push dword [esp + 8]
mov ecx, edi
push 0x283
call fcn.100064c0
push 0x5d
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [esp + 8], al
je 0x10038ade
movss xmm3, dword [0x1004fb00]
jmp 0x10038ae1
xorps xmm3, xmm3
push dword [esp + 8]
mov ecx, edi
push 0x284
call fcn.100064c0
cmp esi, 0xd
jne 0x10038b09
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.10038460
mov edi, dword [esp + 0x54]
mov dword [esp + 8], eax
test eax, eax
je 0x10038b62
mov ecx, dword [0x100cbe88]
add ecx, 8
cmp byte [esp + 0x54], 0
mov dword [esp + 0xc], ecx
je 0x10038b3a
movss xmm3, dword [0x1004fb00]
jmp 0x10038b3d
xorps xmm3, xmm3
push edi
push eax
call fcn.100064c0
cmp esi, 0x1ff
ja 0x10038b62
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [ecx + esi*4 + 0xb4], eax
mov dword [ecx + eax*4 + 0xb4], esi
cmp esi, 0x10
jne 0x10038c2e
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call esi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x10038bc7
mov eax, dword [0x100cbe88]
add eax, 8
mov dword [esp + 8], eax
test cl, cl
je 0x10038b9f
movss xmm3, dword [0x1004fb00]
jmp 0x10038ba2
xorps xmm3, xmm3
push edi
push 0x210
mov ecx, eax
call fcn.100064c0
mov eax, dword [esp + 8]
mov dword [eax + 0x334], 0x210
mov dword [eax + 0x8f4], 0xa0
push 0xa1
call esi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1003919b.527
mov esi, dword [0x100cbe88]
test cl, cl
je 0x10038bf3
movss xmm0, dword [0x1004fb00]
jmp 0x10038bf6
xorps xmm0, xmm0
push edi
push 0x214
movaps xmm3, xmm0
lea ecx, [esi + 8]
call fcn.100064c0
mov dword [esi + 0x340], 0x214
xor eax, eax
mov dword [esi + 0x90c], 0xa1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x10038cfa
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call esi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x10038c93
mov eax, dword [0x100cbe88]
add eax, 8
mov dword [esp + 8], eax
test cl, cl
je 0x10038c6b
movss xmm3, dword [0x1004fb00]
jmp 0x10038c6e
xorps xmm3, xmm3
push edi
push 0x20f
mov ecx, eax
call fcn.100064c0
mov eax, dword [esp + 8]
mov dword [eax + 0x33c], 0x20f
mov dword [eax + 0x8f0], 0xa2
push 0xa3
call esi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1003919b.527
mov esi, dword [0x100cbe88]
test cl, cl
je 0x10038cbf
movss xmm0, dword [0x1004fb00]
jmp 0x10038cc2
xorps xmm0, xmm0
push edi
push 0x213
movaps xmm3, xmm0
lea ecx, [esi + 8]
call fcn.100064c0
mov dword [esi + 0x348], 0x213
xor eax, eax
mov dword [esi + 0x908], 0xa3
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1003919b.527
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call esi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x10038d5f
mov eax, dword [0x100cbe88]
add eax, 8
mov dword [esp + 8], eax
test cl, cl
je 0x10038d37
movss xmm3, dword [0x1004fb00]
jmp 0x10038d3a
xorps xmm3, xmm3
push edi
push 0x211
mov ecx, eax
call fcn.100064c0
mov eax, dword [esp + 8]
mov dword [eax + 0x344], 0x211
mov dword [eax + 0x8f8], 0xa4
push 0xa5
call esi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1003919b.527
mov esi, dword [0x100cbe88]
test cl, cl
je 0x10038d8b
movss xmm0, dword [0x1004fb00]
jmp 0x10038d8e
xorps xmm0, xmm0
push edi
push 0x215
movaps xmm3, xmm0
lea ecx, [esi + 8]
call fcn.100064c0
mov dword [esi + 0x350], 0x215
xor eax, eax
mov dword [esi + 0x910], 0xa5
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
cmp edx, 7
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], 7
sete byte [esp + 0x18]
mov eax, dword [edi + 0x383c]
add edi, 0x383c
mov esi, dword [edi + 4]
cmp eax, esi
jne 0x10038e17
lea ecx, [eax + 1]
test esi, esi
je 0x10038e03
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10038e08
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10026740
mov eax, dword [edi]
movups xmm0, xmmword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je case.0x1003919b.527
cmp eax, 0x10000
jae case.0x1003919b.527
mov esi, dword [esp + 0xc]
movzx edx, ax
mov dword [esp + 0x54], edx
movzx eax, dx
test dx, dx
jne 0x10038f02
cmp word [esi + 0x37ac], dx
je case.0x1003919b.527
movzx ecx, word [esi + 0x37ac]
and eax, 0xfc00
movzx edx, dx
mov dword [esp + 8], edx
test cx, cx
je 0x1003900e
mov ecx, 0xdc00
cmp ax, cx
je 0x10039000
mov eax, dword [edi + 0x383c]
add edi, 0x383c
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x30], 6
mov edx, dword [edi + 4]
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 0xfffd
cmp eax, edx
jne 0x10038fdd
lea ecx, [eax + 1]
test edx, edx
je 0x10038fc9
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x10038fce
movzx ecx, word [esi + 0x37ac]
mov eax, edx
and eax, 0xfc00
mov dword [esp + 8], 0xd800
cmp ax, word [esp + 8]
jne 0x10038e8a
test cx, cx
je 0x10038faf
mov eax, dword [edi + 0x383c]
add edi, 0x383c
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x30], 6
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 0xfffd
cmp eax, dword [edi + 4]
jne 0x10038f92
lea ecx, [eax + 1]
mov eax, dword [edi + 4]
test eax, eax
je 0x10038f7a
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x10038f7f
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10026740
mov eax, dword [edi]
mov edx, dword [esp + 0x54]
movups xmm0, xmmword [esp + 0x30]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi]
mov word [esi + 0x37ac], dx
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10026740
mov eax, dword [edi]
movups xmm0, xmmword [esp + 0x30]
mov edx, dword [esp + 8]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi]
jmp 0x10039005
mov edx, 0xfffd
xor eax, eax
mov word [esi + 0x37ac], ax
movzx eax, dx
push eax
call fcn.10006430
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x1003919b.527
call fcn.100375a0
test al, al
je case.0x1003919b.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x26], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
cmp byte [esi + 8], 0
mov dword [esi + 4], ecx
jne 0x100390ad
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x10
push eax
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov edi, dword [0x100cbe88]
mov ecx, dword [esp + 8]
mov byte [esi + 8], 1
mov eax, dword [ebp + 0xc]
movsx edx, ax
shr eax, 0x10
movsx esi, ax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], esi
test dword [eax], 0x400
je 0x100390e7
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov edi, dword [0x100cbe88]
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x18], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
mov eax, dword [edi + 0x383c]
add edi, 0x383c
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
mov esi, dword [edi + 4]
cmp eax, esi
jne 0x10039153
lea ecx, [eax + 1]
test esi, esi
je 0x1003913f
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10039144
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10026740
mov eax, dword [edi]
movups xmm0, xmmword [esp + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x1003919b.527
movzx eax, byte [eax + 0x100394b0]
jmp dword [eax*4 + 0x10039494]
cmp dword [esi + 4], ecx
jne 0x100391ae
mov dword [esi + 4], 0
xorps xmm0, xmm0
mov byte [esi + 8], 0
movlpd qword [esp + 0x20], xmm0
mov dword [esp + 0x18], 0xff7fffff
mov dword [esp + 0x1c], 0xff7fffff
jmp 0x1003910a
cmp edx, 0x204
je 0x100391e2
xor esi, esi
cmp edx, 0x206
jne 0x100391e7
mov esi, 1
cmp edx, 0x207
je 0x100391f7
cmp edx, 0x209
jne 0x100391fc
mov esi, 2
cmp edx, 0x20b
je 0x1003920c
cmp edx, 0x20d
jne 0x1003921c
mov esi, dword [ebp + 8]
shr esi, 0x10
dec esi
neg esi
sbb esi, esi
neg esi
add esi, 3
mov ecx, dword [esp + 0x54]
cmp dword [ecx + 0xc], 0
jne 0x10039244
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1003923a
push dword [esp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x54]
mov edi, dword [0x100cbe88]
mov eax, dword [ecx + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
bts eax, esi
mov dword [ecx + 0xc], eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], 1
jmp 0x10038dde
xor ecx, ecx
cmp edx, 0x205
sete cl
mov dword [esp + 0xc], ecx
cmp edx, 0x208
jne 0x10039291
mov ecx, 2
jmp 0x100392a9
cmp edx, 0x20c
jne 0x100392ad
mov ecx, dword [ebp + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0xc]
btr eax, ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x100392d6
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 8]
jne 0x100392cc
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0xc]
mov edi, dword [0x100cbe88]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], 0
jmp 0x10038dde
mov eax, dword [ebp + 8]
xorps xmm1, xmm1
shr eax, 0x10
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x1004fbf0]
call fcn.10006610
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm2, xmm2
shr eax, 0x10
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x1004fbf0]
call fcn.10006610
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1003919b.527
mov byte [esi + 0x25], 1
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10047d31
mov esp, ebp
pop ebp
ret