Function at 0x4c4bb0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6517c6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
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 0x67997c
push edi
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c4c53
lea ecx, [esp + 0x28]
call fcn.004c14c0
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.004c1630
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004c1620
jmp 0x4c4e60
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x4c4e55
test edi, edi
jl 0x4c4e88
cmp ebx, eax
jge 0x4c4e88
mov edx, dword [esi + 4]
mov eax, dword [edx + edi + 0x10]
add edx, edi
test eax, eax
jne 0x4c4c84
lea eax, [edx + 0x14]
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c4c87
sub eax, ebp
sar eax, 1
jne 0x4c4cab
mov eax, dword [edx + 4]
test eax, eax
jne 0x4c4ca2
lea eax, [edx + 8]
push eax
lea ecx, [edx + 0x10]
call fcn.00401800
cmp ebx, dword [esi + 8]
jge 0x4c4e88
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 0x10]
add eax, edi
test ecx, ecx
jne 0x4c4cc4
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 0x679c78
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4c4d2b
lea ecx, [esp + 0x28]
call fcn.004c14c0
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.004c1630
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004c1620
jmp 0x4c4e37
cmp ebx, dword [esi + 8]
jge 0x4c4e88
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 0x68bce4
push edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x4c4e88
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 0x4c4e88
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 0x4c4d90
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 0x4c4e88
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 0x4c4e88
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 0x4c4e88
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 0x4c4c64
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c4e55
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.0062023e
add esp, 0x234
ret
call fcn.005f4635
int3