Function at 0x1002c120
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1003900c]
xor eax, esp
mov dword [esp + 0x34], eax
cmp byte [0x10054641], 1
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x1002c193
push 0x10056c48
mov esi, dword [sym.imp.d3dx9_43.dll_D3DXCreateFontA]
push str.Rosemary
push 0
push 0
push 0
push 1
push 0
push 1
push 0x2bc
push 5
push 0xe
push edi
call esi
push 0x10054edc
push str.Rosemary
push 1
push 0
push 0
push 1
push 0
push 1
push 0x2bc
push 5
push 0xe
push edi
call esi
mov byte [0x10054641], 0
cmp dword [0x10056c50], 0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
je 0x1002c7ce
mov eax, dword [edi]
push 0x1005a2e8
push 0x17
push edi
call dword [eax + 0xe8]
mov eax, dword [edi]
push 8
push 0x17
push edi
call dword [eax + 0xe4]
cmp byte [0x1005437b], 0
je 0x1002c3ca
mov ecx, dword [0x10054a48]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 8], eax
mov ecx, eax
mov eax, dword [0x1005a37c]
cmp eax, dword [ecx + 4]
jle 0x1002c228
push 0x1005a37c
call fcn.1002d566
add esp, 4
cmp dword [0x1005a37c], 0xffffffff
jne 0x1002c224
mov eax, dword [0x10054ed4]
push 0x1005a37c
mov eax, dword [eax + 0x18]
shr eax, 1
mov dword [0x1005a364], eax
call fcn.1002d51c
add esp, 4
mov ecx, dword [esp + 8]
mov eax, dword [0x1005a370]
cmp eax, dword [ecx + 4]
jle 0x1002c267
push 0x1005a370
call fcn.1002d566
add esp, 4
cmp dword [0x1005a370], 0xffffffff
jne 0x1002c267
mov eax, dword [0x10054ed4]
push 0x1005a370
mov eax, dword [eax + 0x1c]
shr eax, 1
mov dword [0x1005a374], eax
call fcn.1002d51c
add esp, 4
mov ecx, dword [0x1005a374]
mov eax, dword [0x1005a364]
dec ecx
push 0
push ecx
add eax, 0xfffffffb
mov dword [esp], 0
mov dword [esp + 0x28], eax
add eax, 0xb
push 0xff000000
mov dword [esp + 0x34], eax
lea eax, [ecx + 3]
push 1
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x40], eax
mov eax, dword [edi]
push 1
push edi
call dword [eax + 0xac]
mov ecx, dword [0x1005a374]
mov eax, dword [0x1005a364]
add ecx, 0xfffffffb
push 0
push ecx
dec eax
mov dword [esp], 0
mov dword [esp + 0x28], eax
add eax, 3
push 0xff000000
mov dword [esp + 0x34], eax
lea eax, [ecx + 0xb]
push 1
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x40], eax
mov eax, dword [edi]
push 1
push edi
call dword [eax + 0xac]
mov eax, dword [0x1005a374]
or edx, 0xffffffff
push ecx
mov ecx, dword [0x1005a364]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100364f0]
lea eax, [ecx + 5]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [esp], xmm2
addsd xmm0, qword [eax*8 + 0x100364f0]
lea eax, [ecx - 4]
mov ecx, edi
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100364f0]
cvtpd2ps xmm1, xmm0
call fcn.100293d0
mov eax, dword [0x1005a364]
mov ecx, dword [0x1005a374]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100364f0]
lea eax, [ecx + 5]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100364f0]
lea eax, [ecx - 4]
cvtpd2ps xmm0, xmm0
movss dword [esp], xmm0
movd xmm0, eax
or edx, 0xffffffff
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov ecx, edi
movaps xmm3, xmm1
addsd xmm0, qword [eax*8 + 0x100364f0]
cvtpd2ps xmm2, xmm0
call fcn.100293d0
add esp, 4
mov eax, dword [0x10056c50]
mov eax, dword [eax + 0xd1340]
xor eax, 0x1497b068
mov dword [0x10054f04], eax
je 0x1002c7bd
mov ecx, edi
call fcn.1002a580
call fcn.1002a200
cmp byte [0x10054378], 0
je 0x1002c409
mov eax, dword [0x10054f04]
mov dword [eax + 0x15c0], 1
cmp byte [0x1005437a], 0
je 0x1002c42a
push 0x71
call esi
test ax, ax
je 0x1002c42a
mov eax, dword [0x10056c50]
mov dword [eax + 0xd1344], 0
cmp byte [0x10054390], 0
je 0x1002c44b
push 0x42
call esi
test ax, ax
je 0x1002c44b
mov eax, dword [0x10054f04]
mov dword [eax + 0x1384], 1
cmp byte [0x10054e72], 0
je 0x1002c46d
push 0xffff0000
push 0xf
mov edx, 3
mov ecx, 0x10035c64
call fcn.10028df0
add esp, 8
cmp byte [0x1005436c], 0
je 0x1002c48c
push 0x4a
call esi
test al, 1
je 0x1002c48c
cmp byte [0x10054e72], 0
sete byte [0x10054e72]
cmp byte [0x10054e73], 0
je 0x1002c4ae
push 0xffff0000
push 1
mov edx, 3
mov ecx, 0x10035c7c
call fcn.10028df0
add esp, 8
cmp byte [0x1005436d], 0
je 0x1002c4cd
push 0x48
call esi
test al, 1
je 0x1002c4cd
cmp byte [0x10054e73], 0
sete byte [0x10054e73]
cmp byte [0x1005437d], 0
je 0x1002c4e5
mov eax, dword [0x10054f04]
mov dword [eax + 0x13e4], 0
cmp byte [0x10054379], 0
mov eax, dword [edi]
mov eax, dword [eax + 0xe4]
je 0x1002c4fa
push 1
jmp 0x1002c4fc
push 0
push 0xc2
push edi
call eax
cmp byte [0x1005437f], 0
mov ecx, dword [0x10054f04]
je 0x1002c51d
mov dword [ecx + 0x39c], 0
cmp byte [0x10054391], 0
je 0x1002c530
mov dword [ecx + 0x1288], 0x3f800000
cmp byte [0x10054384], 0
je 0x1002c543
mov dword [ecx + 0x1219], 1
cmp byte [0x10054383], 0
je 0x1002c556
mov dword [ecx + 0x3e4], 0x40000000
cmp byte [0x10054395], 0
je 0x1002c624
push 0x20
call esi
test ax, ax
je 0x1002c61e
mov esi, dword [0x10054f04]
movss xmm0, dword [esi + 0x13f8]
subss xmm0, dword [0x10035e80]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x1c], eax
mulss xmm0, dword [0x10035d34]
cvtps2pd xmm1, xmm0
movq xmm0, qword [esi + 0x24]
movq qword [esp + 0x14], xmm0
movaps xmm0, xmm1
movsd qword [esp + 8], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x14]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
xorps xmm0, xmm0
mulss xmm2, xmm0
movsd xmm0, qword [esp + 8]
subss xmm1, xmm2
movss dword [esp + 0x20], xmm1
movss xmm1, dword [esp + 0x18]
addss xmm1, dword [0x10035d44]
movss dword [esp + 0x24], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov eax, dword [esi]
lea ecx, [esp + 0x20]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
mov ecx, esi
xorps xmm0, xmm0
mulss xmm1, xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
call dword [eax + 0x34]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x10054f04]
cmp byte [0x10054392], 0
je 0x1002c646
push 0x72
call esi
mov ecx, dword [0x10054f04]
test ax, ax
je 0x1002c646
mov dword [ecx + 0x1340], 0
cmp byte [0x10054385], 0
je 0x1002c681
test ecx, ecx
je 0x1002c681
movss xmm0, dword [0x10035e28]
comiss xmm0, dword [ecx + 0x4dc]
jb 0x1002c681
mov eax, dword [0x10056c50]
mov dword [eax + 0xd1344], 0
cmp byte [0x10054385], 0
sete byte [0x10054385]
cmp byte [0x10054356], 0
je 0x1002c6a5
movss xmm0, dword [ecx + 0x1288]
comiss xmm0, dword [0x10035d4c]
jb 0x1002c6a5
mov dword [ecx + 0x1288], 0x3f8ccccd
cmp byte [0x10054357], 0
je 0x1002c6b8
mov dword [ecx + 0x1304], 0x43e10000
cmp byte [0x10054358], 0
je 0x1002c6d9
push 0x20
call esi
test ax, ax
je 0x1002c6d9
mov eax, dword [0x10054f04]
mov dword [eax + 0x1364], 0x41c80000
cmp byte [0x10054390], 0
je 0x1002c6fa
push 0x42
call esi
test ax, ax
je 0x1002c6fa
mov eax, dword [0x10054f04]
mov dword [eax + 0x1384], 1
cmp byte [0x10054359], 0
je 0x1002c7bd
push 0x56
call esi
test ax, ax
je 0x1002c7bd
mov esi, dword [0x10054f04]
movss xmm0, dword [esi + 0x13f8]
subss xmm0, dword [0x10035e80]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x1c], eax
mulss xmm0, dword [0x10035d34]
cvtps2pd xmm1, xmm0
movq xmm0, qword [esi + 0x24]
movq qword [esp + 0x14], xmm0
movaps xmm0, xmm1
movsd qword [esp + 8], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x14]
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm0
xorps xmm0, xmm0
mulss xmm2, dword [0x1005435c]
subss xmm1, xmm2
movss dword [esp + 0x20], xmm1
movss xmm1, dword [esp + 0x18]
addss xmm1, xmm0
movsd xmm0, qword [esp + 8]
movss dword [esp + 0x24], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov eax, dword [esi]
lea ecx, [esp + 0x20]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
push ecx
mov ecx, esi
movss xmm0, dword [esp + 0x20]
mulss xmm1, dword [0x1005435c]
subss xmm0, xmm1
movss dword [esp + 0x2c], xmm0
call dword [eax + 0x34]
push dword [0x1005a2e8]
mov eax, dword [edi]
push 0x17
push edi
call dword [eax + 0xe4]
cmp byte [0x10054e71], 0
jne 0x1002c984
mov esi, dword [0x10039018]
lea ecx, [esp + 0x20]
push ecx
xorps xmm0, xmm0
push edi
mov dword [esi + 0xc], 0x3c888889
mov eax, dword [edi]
movaps xmmword [esp + 0x28], xmm0
call dword [eax + 0x24]
push ecx
mov ecx, dword [esi + 0x80]
call fcn.10024820
push 0x1002bf90
push 0xfffffffffffffffc
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x10054ee4], eax
mov eax, dword [esp + 0x28]
push 0x1005a2c8
mov dword [0x1005a2bc], eax
mov dword [0x1005a2b4], edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1002c8f2
push 0x1005a2c0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1002c8f2
mov ecx, dword [0x10039018]
mov eax, dword [0x1005a2bc]
mov dword [ecx + 0x28], 9
mov dword [ecx + 0x2c], 0x25
mov dword [ecx + 0x30], 0x27
mov dword [ecx + 0x34], 0x26
mov dword [ecx + 0x38], 0x28
mov dword [ecx + 0x3c], 0x21
mov dword [ecx + 0x40], 0x22
mov dword [ecx + 0x44], 0x24
mov dword [ecx + 0x48], 0x23
mov dword [ecx + 0x4c], 0x2e
mov dword [ecx + 0x50], 8
mov dword [ecx + 0x54], 0xd
mov dword [ecx + 0x58], 0x1b
mov dword [ecx + 0x5c], 0x41
mov dword [ecx + 0x60], 0x43
mov dword [ecx + 0x64], 0x56
mov dword [ecx + 0x68], 0x58
mov dword [ecx + 0x6c], 0x59
mov dword [ecx + 0x70], 0x5a
mov dword [ecx + 0xac], 0x10027a80
mov dword [ecx + 0xc8], eax
call fcn.100196f0
mov byte [0x10054363], 1
mov word [0x1005437b], 0x101
mov word [0x1005433a], 0x101
mov word [0x1005433f], 0x101
mov byte [0x10054383], 1
mov byte [0x10054356], 1
mov byte [0x1005437f], 1
mov byte [0x1005437d], 1
mov byte [0x1005437a], 1
mov byte [0x10054359], 1
mov byte [0x10054392], 1
mov byte [0x10054344], 1
mov byte [0x1005433c], 1
mov dword [0x10054374], 1
mov dword [0x1005439c], 1
mov dword [0x10054368], 1
mov byte [0x10054352], 1
mov byte [0x10054e71], 1
push 0x70
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1002c9a1
cmp byte [0x10054363], 0
sete al
mov byte [0x10054363], al
jmp 0x1002c9a6
mov al, byte [0x10054363]
test al, al
je 0x1002c9af
call fcn.10019980
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.1002d3bc
mov esp, ebp
pop ebp
ret 4