Function at 0x4b0d10
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61ef76
push eax
mov dword fs:[0], esp
sub esp, 0x438
lea eax, [esp + 0x10]
push ebx
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x14]
xor ebx, ebx
push ecx
push ebx
push 0xf003f
push ebx
push 0x6f5cb8
push ebx
push str.SoftwareDownloadManagerFoldersTree
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4b0da7
lea ecx, [esp + 0x20]
call fcn.004ac570
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x450], ebx
call fcn.004ac690
lea ecx, [esp + 0x20]
mov dword [esp + 0x448], 0xffffffff
call fcn.004ac680
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
add esp, 0x444
ret
mov eax, dword [esi + 8]
mov dword [esp + 8], ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4b0f4f
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov edx, dword [esi + 4]
or ecx, 0xffffffff
add edx, ebx
mov edi, dword [edx + 8]
lea eax, [edx + 8]
mov dword [esp + 0x24], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4b0dea
mov ecx, dword [esp + 0x24]
add edx, 4
push edx
call fcn.00601a05
mov eax, dword [esi + 4]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 8]
push edx
push 0
push 0xf003f
push 0
push 0x6f5cb8
push 0
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4b0e61
lea ecx, [esp + 0x238]
call fcn.004ac570
push 1
push str.Cannot_open__create__registry_subkey_during_CIDMFoldersTree::Save__._r_n
lea ecx, [esp + 0x240]
mov dword [esp + 0x458], 1
call fcn.004ac690
lea ecx, [esp + 0x238]
mov dword [esp + 0x450], 0xffffffff
call fcn.004ac680
jmp 0x4b0f27
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
add ecx, ebx
push 4
push ecx
push 4
push 0
push 0x6cd770
push edx
call ebp
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + ebx + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.mask
push edx
call ebp
mov eax, dword [esi + 4]
lea edi, [eax + ebx]
mov eax, dword [eax + ebx + 0x10]
push eax
call fcn.005e519b
mov edx, dword [edi + 0x10]
add esp, 4
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
push str.pathW
push eax
call ebp
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
xor edx, edx
push 4
mov dl, byte [ecx + ebx + 0x14]
mov ecx, dword [esp + 0x14]
push eax
push 4
push 0
push str.rememberLastPath
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
xor eax, eax
push 4
mov al, byte [edx + ebx + 0x15]
mov edx, dword [esp + 0x14]
push ecx
push 4
push 0
push str.forSiteOnly
push edx
mov dword [esp + 0x2c], eax
call ebp
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + ebx + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.sites
push edx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0x1c
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4b0dc2
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebp
je 0x4b0f4f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x440]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x444
ret