Function at 0x41f160
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8d95
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x65f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x669988], 0
je 0x41f4d3
cmp byte [edi + 0x114], 0
mov esi, 0x1e
je 0x41f1c2
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
test esi, esi
jle 0x41f1c2
push 0x32
call ebx
dec esi
cmp byte [edi + 0x114], 0
jne 0x41f1b0
mov byte [edi + 0x114], 1
xor ebx, ebx
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x41f4ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, 0x629f50
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x41f202
movzx eax, ax
push eax
call fcn.00403100
jmp 0x41f20e
push 0
push 0x629f50
call fcn.00403300
mov dword [ebp - 4], 1
call fcn.0044712b
mov ecx, eax
test ecx, ecx
je 0x41f4f9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, str.Features.Toolbar.QuickSettings.IntelligentCooling30ForIdeapad
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x41f24d
movzx eax, ax
push eax
call fcn.00403100
jmp 0x41f259
push 0x3d
push str.Features.Toolbar.QuickSettings.IntelligentCooling30ForIdeapad
call fcn.00403300
mov byte [ebp - 4], 3
mov eax, dword [0x669988]
cmp eax, 4
jne 0x41f27b
push 0x3d
push str.Features.Toolbar.QuickSettings.IntelligentCooling40ForIdeapad
lea ecx, [ebp - 0x18]
call fcn.00403300
mov eax, dword [0x669988]
cmp eax, 5
jne 0x41f28f
push 0x3d
push str.Features.Toolbar.QuickSettings.IntelligentCooling50ForIdeapad
lea ecx, [ebp - 0x18]
call fcn.00403300
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
push eax
mov ecx, edi
call fcn.0041f9a0
test al, al
je 0x41f493
mov eax, dword [ebp - 0x20]
mov edx, eax
mov ecx, eax
and edx, 2
and ecx, 8
cmp dword [0x669988], 3
sete byte [ebp - 0x19]
test eax, eax
je 0x41f358
test edx, edx
je 0x41f2e3
test ecx, ecx
jne 0x41f358
cmp byte [ebp - 0x19], 0
je 0x41f43b
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp eax, 2
mov edx, 0x94
setne cl
xor ebx, ebx
cmp eax, 2
mov dword [edi + 0xe0], ecx
setne bl
add ebx, 0x86
cmp eax, 2
mov eax, 0x627ab0
cmove ebx, edx
test ecx, ecx
mov edx, 0x627aa8
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f330
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00403300
push 0x3d
push str.Features.Toolbar.QuickSettings.IntelligentCooling30ForIdeapad
lea ecx, [ebp - 0x18]
jmp 0x41f436
push 0x13
push 0x62f6d4
lea ecx, [ebp - 0x14]
call fcn.00403300
cmp byte [ebp - 0x19], 0
mov ebx, 0x87
mov eax, dword [edi + 0x110]
je 0x41f3eb
cmp eax, ebx
jne 0x41f3ab
mov ecx, str.Performance
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f384
sub ecx, edx
sar ecx, 1
push ecx
push str.Performance
lea ecx, [ebp - 0x14]
call fcn.00403300
mov ebx, 0x94
jmp 0x41f43b
cmp eax, 0x94
jne 0x41f3e4
mov ecx, str.Cool_Quiet
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f3c0
sub ecx, edx
sar ecx, 1
push ecx
push str.Cool_Quiet
lea ecx, [ebp - 0x14]
call fcn.00403300
mov ebx, 0x92
jmp 0x41f43b
cmp eax, 0x92
jmp 0x41f42a
cmp eax, 0x87
jne 0x41f408
push 0xe
push str.Battery_Saving
lea ecx, [ebp - 0x14]
call fcn.00403300
mov ebx, 0x92
jmp 0x41f43b
cmp eax, 0x92
jne 0x41f425
push 0x13
push 0x62f714
lea ecx, [ebp - 0x14]
call fcn.00403300
mov ebx, 0x94
jmp 0x41f43b
cmp eax, 0x94
jne 0x41f43b
push 0x13
lea ecx, [ebp - 0x14]
push 0x62f6d4
call fcn.00403300
cmp byte [edi + 0x15d], 0
mov ecx, edi
push ebx
je 0x41f44e
call fcn.00420060
jmp 0x41f453
call fcn.0041f510
push 0
push 0
push edi
push 0x41fb60
push 0
push 0
mov dword [edi + 0x110], ebx
call fcn.005ae60d
add esp, 0x18
test eax, eax
je 0x41f47a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x14]
mov edx, edi
mov esi, dword [ebp - 0x18]
mov ecx, esi
push str.Features.Toolbar.QuickSettings
call fcn.00424f30
add esp, 4
jmp 0x41f499
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41f4b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x41f4d3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058fc43
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403700
push 0x80004005
call fcn.00403700
int3