Function at 0x408b30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579d3a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x5c8a30]
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
call fcn.00440010
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408cb2
push 0x73
push str.d:jenkins.jenkinsworkspacegroup_clean_battert_protect_battery_protectcommon_battery_wrapper_battery_wrapper.cc
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], al
call fcn.0040abd0
push 3
push 0x5889ac
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040abd0
mov byte [ebp - 4], 1
call fcn.00440010
mov edi, eax
lea ecx, [ebp - 0x134]
push 0x238
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404b00
mov esi, eax
push str.GetChargeMode:_cur:
push esi
mov byte [ebp - 4], 2
call fcn.00406170
mov ebx, dword [ebp + 8]
add esp, 8
mov ecx, esi
push ebx
call fcn.00405e30
push str.__last:
push esi
call fcn.00406170
add esp, 8
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00405e30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x134]
call fcn.00406290
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x408c63
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408c59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40923a
push edx
push ecx
call fcn.00441c23
add esp, 8
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x408cb5
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408ca6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40923f
push edx
push ecx
call fcn.00441c23
add esp, 8
jmp 0x408cb5
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00407900
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
jne 0x408d8b
call fcn.00440010
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408e77
push 0x73
push str.d:jenkins.jenkinsworkspacegroup_clean_battert_protect_battery_protectcommon_battery_wrapper_battery_wrapper.cc
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], al
call fcn.0040abd0
push 3
push 0x5889b0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
call fcn.0040abd0
mov byte [ebp - 4], 5
call fcn.00440010
mov edi, eax
lea ecx, [ebp - 0x134]
push 0x23b
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404b00
mov esi, eax
mov byte [ebp - 4], 6
push str.get_in_buffer_array_err
jmp 0x408e4b
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str..EnergyDrv
mov dword [ebp - 0x80], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x84], ecx
cmp ecx, 0xffffffff
jne 0x408e7e
call fcn.00440010
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x408e77
push 0x73
push str.d:jenkins.jenkinsworkspacegroup_clean_battert_protect_battery_protectcommon_battery_wrapper_battery_wrapper.cc
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], al
call fcn.0040abd0
push 3
push 0x5889b0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
call fcn.0040abd0
mov byte [ebp - 4], 8
call fcn.00440010
mov edi, eax
lea ecx, [ebp - 0x134]
push 0x245
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404b00
mov esi, eax
mov byte [ebp - 4], 9
push str.INVALID_HANDLE_VALUE
push esi
call fcn.00406170
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x134]
call fcn.00406290
lea ecx, [ebp - 0x7c]
call fcn.00405500
lea ecx, [ebp - 0x64]
call fcn.00405500
xor esi, esi
jmp 0x4091ea
mov edi, dword [ebp - 0x18]
xor edx, edx
sub edi, ebx
mov dword [ebp - 0x48], 0
add edi, 3
mov dword [ebp - 0x2c], 0
shr edi, 2
xor esi, esi
cmp ebx, dword [ebp - 0x18]
cmova edi, edx
test edi, edi
je 0x408eea
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x48]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push 0x831020f8
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x408edc
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x80], 1
mov ecx, dword [ebp - 0x84]
inc esi
add ebx, 4
cmp esi, edi
jne 0x408ea5
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
sub eax, 0
je 0x408f16
sub eax, 1
je 0x408f25
sub eax, 1
je 0x408f34
jmp 0x408f43
push 6
push str.Normal
lea ecx, [ebp - 0x44]
call fcn.0040acd0
push 5
push str.Quick
lea ecx, [ebp - 0x44]
call fcn.0040acd0
push 7
push str.Storage
lea ecx, [ebp - 0x44]
call fcn.0040acd0
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x80]
test ebx, ebx
je 0x40904f
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
add eax, eax
push eax
push ecx
push 1
push str.BatteryChargeMode
push str.SoftwareLenovoVantageServiceAddinDataIdeaNotebookAddin
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x40904f
call fcn.00440010
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40904f
push 0x73
push str.d:jenkins.jenkinsworkspacegroup_clean_battert_protect_battery_protectcommon_battery_wrapper_battery_wrapper.cc
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], al
call fcn.0040abd0
push 3
push 0x5889b0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
call fcn.0040abd0
mov byte [ebp - 4], 0xc
call fcn.00440010
mov edi, eax
lea ecx, [ebp - 0x134]
push 0x266
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404b00
mov esi, eax
push str.SHSetValue
push esi
mov byte [ebp - 4], 0xd
call fcn.00406170
add esp, 8
mov ecx, esi
push 0
call fcn.00405fd0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x134]
call fcn.00406290
lea ecx, [ebp - 0x7c]
call fcn.00405500
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xa
call fcn.00405500
call fcn.00440010
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409196
push 0x73
push str.d:jenkins.jenkinsworkspacegroup_clean_battert_protect_battery_protectcommon_battery_wrapper_battery_wrapper.cc
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], al
call fcn.0040abd0
push 3
push 0x5889ac
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
call fcn.0040abd0
mov byte [ebp - 4], 0xf
call fcn.00440010
mov edi, eax
lea ecx, [ebp - 0x1cc]
push 0x269
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00404b00
mov esi, eax
push str.ret:
push esi
mov byte [ebp - 4], 0x10
call fcn.00406170
add esp, 8
mov ecx, esi
push ebx
call fcn.00405e30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1cc]
call fcn.00406290
mov edx, dword [ebp - 0x88]
cmp edx, 0x10
jb 0x409147
mov ecx, dword [ebp - 0x9c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40913d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409244
push edx
push ecx
call fcn.00441c23
add esp, 8
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp edx, 0x10
jb 0x409196
mov ecx, dword [ebp - 0x7c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40918c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409249
push edx
push ecx
call fcn.00441c23
add esp, 8
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4091d0
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4091c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40924e
push edx
push ecx
call fcn.00441c23
add esp, 8
mov ebx, dword [ebp - 0x1c]
xor eax, eax
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
test ebx, ebx
je 0x40921a
mov ecx, dword [ebp - 0x14]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x409210
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409253
push ecx
push ebx
call fcn.00441c23
add esp, 8
mov eax, esi
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.00441ed9
mov esp, ebp
pop ebp
ret 8
call fcn.0054a27c
call fcn.0054a27c
call fcn.0054a27c
call fcn.0054a27c
call fcn.0054a27c
call fcn.0054a27c
int3