Function at 0x4a2a10
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fd8d6
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 0x6ce7c8
push ebx
push str.SoftwareDownloadManagerFoldersTree
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4a2aa7
lea ecx, [esp + 0x20]
call fcn.0049e3c0
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.0049e4e0
lea ecx, [esp + 0x20]
mov dword [esp + 0x448], 0xffffffff
call fcn.0049e4d0
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 0x4a2c4f
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 0x4a2aea
mov ecx, dword [esp + 0x24]
add edx, 4
push edx
call fcn.005e12c5
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 0x6ce7c8
push 0
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4a2b61
lea ecx, [esp + 0x238]
call fcn.0049e3c0
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.0049e4e0
lea ecx, [esp + 0x238]
mov dword [esp + 0x450], 0xffffffff
call fcn.0049e4d0
jmp 0x4a2c27
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
add ecx, ebx
push 4
push ecx
push 4
push 0
push 0x6a7f00
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.005c4b4a
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 0x4a2ac2
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebp
je 0x4a2c4f
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