Function at 0x1004f016
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x10103fe8]
mov dword [esp + 0x10], ecx
push esi
push edi
mov edi, edx
test eax, eax
je case.0x1004f741.527
mov edx, dword [eax + 0x74]
lea esi, [eax + 8]
mov dword [esp + 0x14], edx
cmp edi, 0x200
ja 0x1004f729
je case.0x1004f00f.160
lea eax, [edi - 7]
cmp eax, 0xfe
ja case.0x1004f741.527
movzx eax, byte [eax + 0x1004f9a8]
jmp dword [eax*4 + 0x1004f990]
cmp edi, 0x100
je 0x1004f02b
mov byte [esp + 0xc], 0
cmp edi, 0x104
jne 0x1004f030
mov byte [esp + 0xc], 1
cmp dword [ebp + 8], 0x100
jae case.0x1004f741.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x18], al
je 0x1004f07a
test al, al
je 0x1004f067
movss xmm3, dword [0x100f1ec4]
jmp 0x1004f06a
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, esi
push 0x1000
call fcn.10027ca0
push 0x10
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x18], al
je 0x1004f0b1
test al, al
je 0x1004f09e
movss xmm3, dword [0x100f1ec4]
jmp 0x1004f0a1
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, esi
push 0x2000
call fcn.10027ca0
push 0x12
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x18], al
je 0x1004f0e8
test al, al
je 0x1004f0d5
movss xmm3, dword [0x100f1ec4]
jmp 0x1004f0d8
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, esi
push 0x4000
call fcn.10027ca0
push 0x5d
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x18], al
je 0x1004f11f
test al, al
je 0x1004f10c
movss xmm3, dword [0x100f1ec4]
jmp 0x1004f10f
xorps xmm3, xmm3
push dword [esp + 0x18]
mov ecx, esi
push 0x8000
call fcn.10027ca0
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x1004f13a
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.1004ea80
mov dword [esp + 0x18], eax
test eax, eax
je 0x1004f19b
mov ecx, dword [0x10103fe8]
add ecx, 8
mov dword [esp + 0x14], ecx
cmp byte [ecx + 0x3761], 0
je 0x1004f185
cmp byte [esp + 0xc], 0
je 0x1004f170
movss xmm3, dword [0x100f1ec4]
jmp 0x1004f173
xorps xmm3, xmm3
push dword [esp + 0xc]
push eax
call fcn.10027ca0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp esi, 0x1ff
ja 0x1004f19b
mov dword [ecx + esi*4 + 0xb4], eax
mov dword [ecx + eax*4 + 0xb4], esi
cmp esi, 0x10
jne 0x1004f266
push 0xa0
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1004f1fe
mov eax, dword [0x10103fe8]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1004f1ea
test cl, cl
je 0x1004f1d7
movss xmm3, dword [0x100f1ec4]
jmp 0x1004f1da
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, esi
push 0x210
call fcn.10027ca0
mov dword [esi + 0x334], 0x210
mov dword [esi + 0x8f4], 0xa0
push 0xa1
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1004f741.527
mov esi, dword [0x10103fe8]
cmp byte [esi + 0x3769], 0
je 0x1004f24a
test cl, cl
je 0x1004f233
movss xmm0, dword [0x100f1ec4]
jmp 0x1004f236
xorps xmm0, xmm0
push dword [esp + 0xc]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.10027ca0
mov dword [esi + 0x340], 0x214
xor eax, eax
mov dword [esi + 0x90c], 0xa1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1004f331
push 0xa2
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1004f2c9
mov eax, dword [0x10103fe8]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1004f2b5
test cl, cl
je 0x1004f2a2
movss xmm3, dword [0x100f1ec4]
jmp 0x1004f2a5
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, esi
push 0x20f
call fcn.10027ca0
mov dword [esi + 0x33c], 0x20f
mov dword [esi + 0x8f0], 0xa2
push 0xa3
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1004f741.527
mov esi, dword [0x10103fe8]
cmp byte [esi + 0x3769], 0
je 0x1004f315
test cl, cl
je 0x1004f2fe
movss xmm0, dword [0x100f1ec4]
jmp 0x1004f301
xorps xmm0, xmm0
push dword [esp + 0xc]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.10027ca0
mov dword [esi + 0x348], 0x213
xor eax, eax
mov dword [esi + 0x908], 0xa3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1004f741.527
push 0xa4
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1004f394
mov eax, dword [0x10103fe8]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1004f380
test cl, cl
je 0x1004f36d
movss xmm3, dword [0x100f1ec4]
jmp 0x1004f370
xorps xmm3, xmm3
push dword [esp + 0xc]
mov ecx, esi
push 0x211
call fcn.10027ca0
mov dword [esi + 0x344], 0x211
mov dword [esi + 0x8f8], 0xa4
push 0xa5
call edi
mov cl, byte [esp + 0xc]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1004f741.527
mov esi, dword [0x10103fe8]
cmp byte [esi + 0x3769], 0
je 0x1004f3e0
test cl, cl
je 0x1004f3c9
movss xmm0, dword [0x100f1ec4]
jmp 0x1004f3cc
xorps xmm0, xmm0
push dword [esp + 0xc]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.10027ca0
mov dword [esi + 0x350], 0x215
xor eax, eax
mov dword [esi + 0x910], 0xa5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10103fe8]
cmp edi, 7
mov esi, dword [esi + 0xdb0]
sete byte [esp + 0xb]
mov edx, dword [eax + 0x3780]
sub edx, 1
js 0x1004f433
mov eax, dword [eax + 0x3788]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
cmp dword [eax], 6
je 0x1004f47b
sub eax, 0x18
sub edx, 1
jns 0x1004f426
cmp byte [esi + 0x3768], 0
sete al
mov cl, byte [esp + 0xb]
cmp al, cl
je case.0x1004f741.527
xorps xmm0, xmm0
lea eax, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
mov byte [esp + 0x38], cl
lea ecx, [esi + 0x3780]
push eax
movq qword [esp + 0x44], xmm0
mov dword [esp + 0x34], 6
call fcn.1003d3d0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [eax + 8]
jmp 0x1004f43d
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1004f5a6
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1004f741.527
movzx edi, cx
mov eax, edi
test ax, ax
jne 0x1004f4b7
cmp word [esi + 0x3764], ax
je case.0x1004f741.527
cmp byte [esi + 0x3761], 0
je case.0x1004f741.527
movzx edx, word [esi + 0x3764]
mov ecx, eax
and ecx, 0xfc00
mov dword [esp + 0x18], 0xd800
cmp cx, word [esp + 0x18]
jne 0x1004f535
test dx, dx
je 0x1004f526
mov ecx, dword [esi + 0xdb0]
lea eax, [esp + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push eax
add ecx, 0x3780
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x34], 5
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], 0xfffd
call fcn.1003d3d0
mov word [esi + 0x3764], di
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x1004f5a1
mov eax, 0xdc00
cmp cx, ax
je 0x1004f593
mov ecx, dword [esi + 0xdb0]
lea eax, [esp + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push eax
add ecx, 0x3780
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x34], 5
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], 0xfffd
call fcn.1003d3d0
mov eax, edi
xor ecx, ecx
mov word [esi + 0x3764], cx
movzx eax, ax
jmp 0x1004f5ca
xor ecx, ecx
mov eax, 0xfffd
mov word [esi + 0x3764], cx
movzx eax, ax
jmp 0x1004f5ca
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 1
lea eax, [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [esp + 0x18]
test eax, eax
je case.0x1004f741.527
cmp byte [esi + 0x3761], 0
je case.0x1004f741.527
mov ecx, dword [esi + 0xdb0]
xorps xmm0, xmm0
mov dword [esp + 0x38], eax
add ecx, 0x3780
lea eax, [esp + 0x30]
movlpd qword [esp + 0x3c], xmm0
push eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], 5
mov dword [esp + 0x38], 2
call fcn.1003d3d0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x1004f741.527
call fcn.1004dfc0
test al, al
je case.0x1004f741.527
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edx + 4], ecx
mov edx, dword [edx + 8]
cmp edi, 0x200
setne al
inc eax
mov dword [esp + 0x1c], eax
cmp edx, eax
je 0x1004f6d6
cmp edi, 0x200
mov dword [esp + 0xc], 0x12
mov eax, 2
mov dword [esp + 0x20], 0x10
cmovne eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x24], 0x80000000
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0
test edx, edx
je 0x1004f6c0
lea ecx, [esp + 0x20]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [esp + 0x30]
push ecx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
movsx edx, ax
shr eax, 0x10
cwde
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
cmp edi, 0xa0
jne 0x1004f70c
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1004f741.527
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
movd xmm2, eax
mov ecx, esi
movd xmm1, edx
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.10027dc0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0x201]
cmp eax, 0xa2
ja case.0x1004f741.527
movzx eax, byte [eax + 0x1004fac4]
jmp dword [eax*4 + 0x1004faa8]
xor eax, eax
cmp edi, 0x2a3
setne al
inc eax
cmp dword [edx + 8], eax
jne case.0x1004f741.527
cmp dword [edx + 4], ecx
jne 0x1004f769
mov dword [edx + 4], 0
movss xmm1, dword [0x100f20ac]
mov ecx, esi
movaps xmm2, xmm1
mov dword [edx + 8], 0
call fcn.10027dc0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], 0
cmp edi, 0x204
je 0x1004f7a2
cmp edi, 0x206
jne 0x1004f7aa
mov dword [esp + 0xc], 1
cmp edi, 0x207
je 0x1004f7ba
cmp edi, 0x209
jne 0x1004f7c2
mov dword [esp + 0xc], 2
cmp edi, 0x20b
je 0x1004f7d2
cmp edi, 0x20d
jne 0x1004f7e6
mov eax, dword [ebp + 8]
shr eax, 0x10
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0xc], eax
cmp dword [edx + 0xc], 0
jne 0x1004f804
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1004f800
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetCapture]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0xc]
bts eax, ecx
push 1
push ecx
mov ecx, esi
mov dword [edx + 0xc], eax
call fcn.10027ee0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp edi, 0x205
sete cl
mov dword [esp + 0xc], ecx
cmp edi, 0x208
jne 0x1004f841
mov ecx, 2
jmp 0x1004f859
cmp edi, 0x20c
jne 0x1004f85d
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 [edx + 0xc]
btr eax, ecx
mov dword [edx + 0xc], eax
test eax, eax
jne 0x1004f880
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x18]
jne 0x1004f87c
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0xc]
push 0
push ecx
mov ecx, esi
call fcn.10027ee0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0xdb0]
shr eax, 0x10
cmp byte [esi + 0x3761], 0
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x100f1ffc]
je case.0x1004f741.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1004f741.527
lea eax, [esp + 0x30]
movlpd qword [esp + 0x40], xmm0
push eax
add ecx, 0x3780
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0
movss dword [esp + 0x40], xmm1
call fcn.1003d3d0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0xdb0]
shr eax, 0x10
cmp byte [esi + 0x3761], 0
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x100f28b0]
divss xmm1, dword [0x100f1ffc]
je case.0x1004f741.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1004f741.527
lea eax, [esp + 0x30]
movlpd qword [esp + 0x40], xmm0
push eax
add ecx, 0x3780
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 1
movss dword [esp + 0x3c], xmm1
mov dword [esp + 0x40], 0
call fcn.1003d3d0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1004f741.527
mov byte [edx + 0x25], 1
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret