Function at 0x4bd540
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x646a16
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
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 0x66e97c
push edi
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4bd5e3
lea ecx, [esp + 0x28]
call fcn.004b9e60
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.004b9fd0
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004b9fc0
jmp 0x4bd7f0
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x4bd7e5
test edi, edi
jl 0x4bd818
cmp ebx, eax
jge 0x4bd818
mov edx, dword [esi + 4]
mov eax, dword [edx + edi + 0x10]
add edx, edi
test eax, eax
jne 0x4bd614
lea eax, [edx + 0x14]
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bd617
sub eax, ebp
sar eax, 1
jne 0x4bd63b
mov eax, dword [edx + 4]
test eax, eax
jne 0x4bd632
lea eax, [edx + 8]
push eax
lea ecx, [edx + 0x10]
call fcn.004017f0
cmp ebx, dword [esi + 8]
jge 0x4bd818
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 0x10]
add eax, edi
test ecx, ecx
jne 0x4bd654
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 0x66ec78
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4bd6bb
lea ecx, [esp + 0x28]
call fcn.004b9e60
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.004b9fd0
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004b9fc0
jmp 0x4bd7c7
cmp ebx, dword [esi + 8]
jge 0x4bd818
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 0x6807b4
push edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x4bd818
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 0x4bd818
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 0x4bd720
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 0x4bd818
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 0x4bd818
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 0x4bd818
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 0x4bd5f4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4bd7e5
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.006157d3
add esp, 0x234
ret
call fcn.005e9bc5
int3