Function at 0x48f440
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0x595648
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20006
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48f4b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HostProtect_create_SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b_failed_error:_d_n
push 0x595824
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48f6af
cmp dword [ebp + 8], 0
jne 0x48f560
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 4
lea ecx, [ebp - 0x24]
push ecx
push 4
push 0
push 0x595840
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48f516
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x595870
push 0x595854
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48f6af
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push 0x595908
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x48f55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x595920
push 0x5959bc
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48f6af
jmp 0x48f6a3
cmp dword [ebp + 8], 1
jne 0x48f607
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 1
push 4
lea edx, [ebp - 0x30]
push edx
push 4
push 0
push 0x5959d8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x48f5bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x595a08
push 0x5959ec
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48f6af
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 4
push 0
push 0x595aa0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x48f602
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x595ab8
push 0x595b54
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48f6af
jmp 0x48f6a3
cmp dword [ebp + 8], 2
jne 0x48f6a3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 1
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push 0
push 0x595b70
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x48f661
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HostProtect_set_USB_SaveUSBStatus_RegSetValueEx_Deny_Read_error_code:_d_n
push 0x595b84
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48f6af
push 4
lea edx, [ebp - 0x38]
push edx
push 4
push 0
push 0x595c38
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x48f6a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HostProtect_set_USB_SaveUSBStatus_RegSetValueEx_Deny_Write_error_code:_d_n
push str.HostProtect::SaveUSBStatus
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48f6af
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret