Function at 0x4c31e0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x644716
push eax
mov dword fs:[0], esp
sub esp, 0x434
lea eax, [esp + 0x10]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
push eax
xor edi, edi
push ecx
push edi
push 0xf003f
push edi
push 0x6fc418
push edi
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c3277
lea ecx, [esp + 0x1c]
call fcn.004be6a0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x24]
mov dword [esp + 0x44c], edi
call fcn.004be7c0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x444], 0xffffffff
call fcn.004be7b0
pop edi
pop esi
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
add esp, 0x440
ret
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x4c343b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
mov edx, dword [esi + 4]
mov ecx, dword [edx + edi + 0x10]
lea eax, [edx + edi + 0x10]
test ecx, ecx
jne 0x4c32a4
lea ecx, [eax + 4]
push ecx
call fcn.00609a4e
add esp, 4
test eax, eax
jne 0x4c32cb
mov eax, dword [esi + 4]
add eax, edi
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4c32c0
lea ecx, [eax + 8]
add eax, 0x10
push ecx
mov ecx, eax
call fcn.00401f20
mov ecx, dword [esi + 4]
lea eax, [ecx + edi + 0x10]
mov ecx, dword [ecx + edi + 0x10]
test ecx, ecx
jne 0x4c32dd
lea ecx, [eax + 4]
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x6fc41c
push 0
push ecx
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4c334d
lea ecx, [esp + 0x234]
call fcn.004be6a0
push 1
push str.Cannot_open__create__registry_subkey_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x23c]
mov dword [esp + 0x454], 1
call fcn.004be7c0
lea ecx, [esp + 0x234]
mov dword [esp + 0x44c], 0xffffffff
call fcn.004be7b0
jmp 0x4c3413
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
add edx, edi
push 4
push edx
push 4
push 0
push 0x6d2094
push eax
call ebx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + edi + 0x1c]
mov edx, dword [eax - 8]
inc edx
push edx
push eax
mov eax, dword [esp + 0x18]
push 1
push 0
push str.mask
push eax
call ebx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + edi + 0x20]
lea ebp, [ecx + edi]
push eax
call fcn.00609a4e
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x20]
push edx
push eax
push 0
push 0
push str.pathW
push ecx
call ebx
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
xor eax, eax
push 4
mov al, byte [edx + edi + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push 4
push 0
push str.rememberLastPath
push edx
mov dword [esp + 0x2c], eax
call ebx
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
xor ecx, ecx
push 4
mov cl, byte [eax + edi + 0x25]
mov eax, dword [esp + 0x14]
push edx
push 4
push 0
push str.forSiteOnly
push eax
mov dword [esp + 0x2c], ecx
call ebx
mov ecx, dword [esi + 4]
mov eax, dword [ecx + edi + 0x28]
mov edx, dword [eax - 8]
inc edx
push edx
push eax
mov eax, dword [esp + 0x18]
push 1
push 0
push str.sites
push eax
call ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
inc eax
add edi, 0x2c
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4c3292
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
pop ebx
je 0x4c343b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x440
ret