Function at 0x452360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498315
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ed018]
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 esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], ebx
call fcn.00436bd0
mov dword [ebp - 4], 0
push ebx
push str.PendingRebootFileOp::WriteToRegistry:_Writing_rename_operations_for___S_
push 2
mov dword [ebp - 0x2c], 0
call fcn.00446b80
add esp, 0xc
test ebx, ebx
jne 0x4523d7
push str.PendingRebootFileOp::WriteToRegistry:_Got_bad_configName_param
push 1
call fcn.00446b80
add esp, 8
xor esi, esi
jmp 0x4525e0
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 2
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x452420
push 2
push str.SYSTEMCurrentControlSetControlSession_Manager
push str.DriverBaseInfo::OpenDriverInfoKey:_Failed_to_open_key___S__with_access__u
push eax
push 2
call fcn.00447040
add esp, 0x14
mov dword [ebp - 0x2c], 0
xor esi, esi
jmp 0x4525e0
mov eax, dword [ebp + 0xc]
sub eax, 1
je 0x45246e
sub eax, 1
jne 0x4524d9
test byte [esi], 2
je 0x4524d9
cmp dword [esi + 0x4c], 8
lea ecx, [esi + 0x38]
jb 0x452446
mov ecx, dword [esi + 0x38]
push dword [esi + 0x48]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004383a0
push 0x499f9c
lea ecx, [ebp - 0x28]
call fcn.00437630
push 0x499f9c
lea ecx, [ebp - 0x28]
call fcn.00437630
jmp 0x4524cc
test byte [esi], 1
je 0x4524d9
cmp dword [esi + 0x6c], 8
lea ecx, [esi + 0x58]
jb 0x45247f
mov ecx, dword [esi + 0x58]
push dword [esi + 0x68]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004383a0
push 0x499f9c
lea ecx, [ebp - 0x28]
call fcn.00437630
test byte [esi + 0x88], 1
je 0x4524ae
push 0x4c95a4
lea ecx, [ebp - 0x28]
call fcn.00437630
cmp dword [esi + 0x84], 8
lea ecx, [esi + 0x70]
jb 0x4524bd
mov ecx, dword [esi + 0x70]
push dword [esi + 0x80]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004383a0
push 0x499f9c
lea ecx, [ebp - 0x28]
call fcn.00437630
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x30], eax
lea ebx, [eax + eax]
push ebx
call fcn.0047ee60
mov edi, eax
add esp, 4
test edi, edi
jne 0x452514
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.PendingRebootFileOp::WriteToRegistry:_malloc_failed_for__S
push 1
call fcn.00446b80
add esp, 0xc
lea ebx, [edi + 8]
jmp 0x452592
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.PendingRebootFileOp::WriteToRegistry:_Writing_rename_operations_for_internal:__S
push 2
call fcn.00446b80
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x28]
add eax, 0xfffffffe
push eax
push ecx
push edi
call fcn.0048418a
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push 0x3b
push edi
mov word [edi + eax*2 - 4], cx
xor eax, eax
mov word [ebx + edi - 2], ax
call fcn.00413d0b
add esp, 0x20
test eax, eax
je 0x45257c
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x3b
push eax
call fcn.00413d0b
add esp, 8
test eax, eax
jne 0x452565
push ebx
push edi
push 7
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4525a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4525ad
push edi
call fcn.0047ee40
add esp, 4
push ebx
push str.PendingRebootFileOp::WriteToRegistry:_Set_rename_operations_____d
push 2
call fcn.00446b80
add esp, 0xc
test ebx, ebx
je 0x4525d8
push dword [ebp - 0x34]
push str.PendingRebootFileOp::WriteToRegistry:_Failed_to_set_pending_file_renames_ops_for_driver__S
push ebx
push 1
call fcn.00447040
add esp, 0x10
xor esi, esi
jmp 0x4525e0
or dword [esi], 0x10
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00437d70
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.00401bd5
mov esp, ebp
pop ebp
ret 8