Function at 0x4c3b20
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64e856
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
mov esi, ecx
lea ecx, [esp + 0x20]
push ecx
xor edi, edi
push edi
push 0xf003f
push edi
push 0x676974
push edi
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c3bc3
lea ecx, [esp + 0x28]
call fcn.004c0490
mov dword [esp + 0x244], edi
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x30]
call fcn.004c0600
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004c05f0
jmp 0x4c3dd0
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x4c3dc5
test edi, edi
jl 0x4c3df8
cmp ebx, eax
jge 0x4c3df8
mov edx, dword [esi + 4]
mov eax, dword [edx + edi + 0x10]
add edx, edi
test eax, eax
jne 0x4c3bf4
lea eax, [edx + 0x14]
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c3bf7
sub eax, ebp
sar eax, 1
jne 0x4c3c1b
mov eax, dword [edx + 4]
test eax, eax
jne 0x4c3c12
lea eax, [edx + 8]
push eax
lea ecx, [edx + 0x10]
call fcn.004017f0
cmp ebx, dword [esi + 8]
jge 0x4c3df8
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 0x10]
add eax, edi
test ecx, ecx
jne 0x4c3c34
lea ecx, [eax + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0x676c70
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4c3c9b
lea ecx, [esp + 0x28]
call fcn.004c0490
mov dword [esp + 0x244], 1
push 1
push str.Cannot_open__create__registry_subkey_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x30]
call fcn.004c0600
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004c05f0
jmp 0x4c3da7
cmp ebx, dword [esi + 8]
jge 0x4c3df8
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
add ecx, edi
push ecx
push 4
push 0
push 0x6888b4
push edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x4c3df8
mov eax, dword [esi + 4]
mov eax, dword [eax + edi + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x14]
inc ecx
push ecx
push eax
push 1
push 0
push str.mask
push edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x4c3df8
mov eax, dword [esi + 4]
lea edx, [eax + edi + 0x20]
mov eax, dword [edx]
lea ebp, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c3d00
mov edx, dword [edx]
sub eax, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0
push 0
push str.pathW
push eax
call ebp
cmp ebx, dword [esi + 8]
jge 0x4c3df8
mov ecx, dword [esi + 4]
movzx edx, byte [ecx + edi + 0x24]
mov ecx, dword [esp + 0x14]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.rememberLastPath
push ecx
mov dword [esp + 0x30], edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x4c3df8
mov edx, dword [esi + 4]
movzx eax, byte [edx + edi + 0x25]
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push str.forSiteOnly
push edx
mov dword [esp + 0x30], eax
call ebp
cmp ebx, dword [esi + 8]
jge 0x4c3df8
mov eax, dword [esi + 4]
mov eax, dword [eax + edi + 0x28]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x14]
inc ecx
push ecx
push eax
push 1
push 0
push str.sites
push edx
call ebp
mov eax, dword [esi + 8]
inc ebx
add edi, 0x2c
cmp ebx, eax
jl 0x4c3bd4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c3dc5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x234
ret
call fcn.005f16d5
int3