Function at 0x4bf0a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6495a6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
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 0x670984
push edi
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4bf143
lea ecx, [esp + 0x28]
call fcn.004bb9b0
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.004bbb20
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004bbb10
jmp 0x4bf350
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x4bf345
test edi, edi
jl 0x4bf378
cmp ebx, eax
jge 0x4bf378
mov edx, dword [esi + 4]
mov eax, dword [edx + edi + 0x10]
add edx, edi
test eax, eax
jne 0x4bf174
lea eax, [edx + 0x14]
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bf177
sub eax, ebp
sar eax, 1
jne 0x4bf19b
mov eax, dword [edx + 4]
test eax, eax
jne 0x4bf192
lea eax, [edx + 8]
push eax
lea ecx, [edx + 0x10]
call fcn.004017f0
cmp ebx, dword [esi + 8]
jge 0x4bf378
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 0x10]
add eax, edi
test ecx, ecx
jne 0x4bf1b4
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 0x670c80
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4bf21b
lea ecx, [esp + 0x28]
call fcn.004bb9b0
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.004bbb20
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004bbb10
jmp 0x4bf327
cmp ebx, dword [esi + 8]
jge 0x4bf378
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 0x68281c
push edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x4bf378
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 0x4bf378
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 0x4bf280
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 0x4bf378
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 0x4bf378
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 0x4bf378
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 0x4bf154
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4bf345
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.0061807e
add esp, 0x234
ret
call fcn.005ec455
int3