Function at 0x48f6c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x601608
push 1
push 0
push 0x6015f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48f72a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HostProtect_set_USB_SaveGPOUSBStatus_CoCreateInstance_error_code:_d_n
push 0x595d98
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
mov dword [ebp - 4], 2
mov dword [ebp - 0xc], 0
push 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 0x14]
call ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x48f774
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HostProtect_set_USB_SaveGPOUSBStatus_OpenLocalMachineGPO_error_code:_d_n
push 0x595e50
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 0x3c]
call ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x48f7b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HostProtect_set_USB_SaveGPOUSBStatus_GetRegistryKey_error_code:_d_n
push 0x595efc
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
push 0x20006
push 0
push 0x595f20
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48f82e
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push 0x595fe8
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48f82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HostProtect_set_USB_SaveGPOUSBStatus_RegCreateKeyEx_SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b_error_code:_d_n
push 0x596204
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
cmp dword [ebp + 8], 0
jne 0x48f8d5
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push 4
lea eax, [ebp - 0x44]
push eax
push 4
push 0
push 0x596224
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48f88b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x596238
push 0x5962d8
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
push 4
lea edx, [ebp - 0x40]
push edx
push 4
push 0
push 0x5962f8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48f8d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x596310
push 0x5963b0
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
jmp 0x48fa1e
cmp dword [ebp + 8], 1
jne 0x48f97c
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 1
push 4
lea ecx, [ebp - 0x4c]
push ecx
push 4
push 0
push 0x5963d0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48f932
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5963f8
push 0x596498
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
push 4
lea eax, [ebp - 0x48]
push eax
push 4
push 0
push 0x5964b8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48f977
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5964d0
push 0x596570
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
jmp 0x48fa1e
cmp dword [ebp + 8], 2
jne 0x48fa1e
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 1
push 4
lea edx, [ebp - 0x54]
push edx
push 4
push 0
push 0x5963e4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48f9d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HostProtect_set_USB_SaveGPOUSBStatus_RegSetValueEx_Deny_Read_error_code:_d_n
push 0x596630
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
push 4
lea ecx, [ebp - 0x50]
push ecx
push 4
push 0
push 0x596650
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48fa1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HostProtect_set_USB_SaveGPOUSBStatus_RegSetValueEx_Deny_Write_error_code:_d_n
push str.HostProtect::SaveGPOUSBStatus
call fcn.0040c050
add esp, 0xc
mov eax, 9
jmp 0x48fada
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0x35378eac
mov ecx, 0x683f
mov word [ebp - 0x28], cx
mov edx, 0x11d2
mov word [ebp - 0x26], dx
mov byte [ebp - 0x24], 0xa8
mov byte [ebp - 0x23], 0x9a
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0xc0
mov byte [ebp - 0x20], 0x4f
mov byte [ebp - 0x1f], 0xbb
mov byte [ebp - 0x1e], 0xcf
mov byte [ebp - 0x1d], 0xa2
mov dword [ebp - 0x3c], 0xf6b957e
mov eax, 0x509e
mov word [ebp - 0x38], ax
mov ecx, 0x11d1
mov word [ebp - 0x36], cx
mov byte [ebp - 0x34], 0xa7
mov byte [ebp - 0x33], 0xcc
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 0xf8
mov byte [ebp - 0x2f], 0x75
mov byte [ebp - 0x2e], 0x71
mov byte [ebp - 0x2d], 0xe3
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret