Function at 0x4a0c90
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fb936
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 0x6cc7b8
push ebx
push str.SoftwareDownloadManagerFoldersTree
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4a0d27
lea ecx, [esp + 0x20]
call fcn.0049c640
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.0049c760
lea ecx, [esp + 0x20]
mov dword [esp + 0x448], 0xffffffff
call fcn.0049c750
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 0x4a0ecf
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 0x4a0d6a
mov ecx, dword [esp + 0x24]
add edx, 4
push edx
call fcn.005df39f
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 0x6cc7b8
push 0
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4a0de1
lea ecx, [esp + 0x238]
call fcn.0049c640
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.0049c760
lea ecx, [esp + 0x238]
mov dword [esp + 0x450], 0xffffffff
call fcn.0049c750
jmp 0x4a0ea7
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
add ecx, ebx
push 4
push ecx
push 4
push 0
push 0x6a5ef8
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.005c2c42
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 0x4a0d42
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebp
je 0x4a0ecf
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