Function at 0x6c481b00
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x44], 0x28
test byte [0x6c484018], 8
jne 0x6c481c10
mov eax, dword fs:[0x18]
test ebx, ebx
je 0x6c481bf0
test esi, esi
je 0x6c481bf0
mov dword [eax + 0x34], 0
mov eax, dword [section..bss]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x48]
sub esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionControls_FolderPowerCfg
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x6c481c48
test byte [0x6c484018], 8
jne 0x6c481d08
mov dword [ebx], 0xe10
mov dword [esi], 3
mov eax, dword [section..bss]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p___p__n
mov dword [esp + 8], str.GetPwrDiskSpindownRange
mov dword [esp + 4], 0x6c484018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6c481b2d
lea eax, [ebp - 0x44]
lea edi, [ebp - 0x40]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x10], edi
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 8], 0
mov dword [esp + 4], str.DiskSpindownMax
mov dword [ebp - 0x4c], eax
call eax
sub esp, 0x18
test eax, eax
je 0x6c481d70
test byte [0x6c484018], 8
jne 0x6c481e10
mov dword [ebx], 0xe10
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x28
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x10], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.DiskSpindownMin
call eax
sub esp, 0x18
test eax, eax
je 0x6c481d90
test byte [0x6c484018], 8
jne 0x6c481db0
mov dword [esi], 3
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6c481bb3
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RegOpenKeyEx_failed:__ld_n
mov dword [esp + 8], str.GetPwrDiskSpindownRange
mov dword [esp + 4], 0x6c484018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x6c484018], 8
je 0x6c481ba7
mov dword [esp + 0xc], str.Using_defaults:_3600__3_n
mov dword [esp + 8], str.GetPwrDiskSpindownRange
mov dword [esp + 4], 0x6c484018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6c481ba7
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [ebx], eax
jmp 0x6c481c9c
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov dword [esi], eax
jmp 0x6c481cef
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_open_DiskSpinDownMin:__ld_n
mov dword [esp + 8], str.GetPwrDiskSpindownRange
mov dword [esp + 4], 0x6c484018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x6c484018], 8
je 0x6c481ce9
mov dword [esp + 0xc], str.Using_default:_3_n
mov dword [esp + 8], str.GetPwrDiskSpindownRange
mov dword [esp + 4], 0x6c484018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6c481ce9
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_open_DiskSpinDownMax:__ld_n
mov dword [esp + 8], str.GetPwrDiskSpindownRange
mov dword [esp + 4], 0x6c484018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x6c484018], 8
je 0x6c481c96
mov dword [esp + 0xc], str.Using_default:_3600_n
mov dword [esp + 8], str.GetPwrDiskSpindownRange
mov dword [esp + 4], 0x6c484018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6c481c96