Function at 0x4b4f90
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x629286
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
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 0x64f8bc
push edi
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4b5033
lea ecx, [esp + 0x28]
call fcn.004b1950
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.004b1ac0
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004b1ab0
jmp 0x4b5240
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x4b5235
test edi, edi
jl 0x4b5268
cmp ebx, eax
jge 0x4b5268
mov edx, dword [esi + 4]
mov eax, dword [edx + edi + 0x10]
add edx, edi
test eax, eax
jne 0x4b5064
lea eax, [edx + 0x14]
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b5067
sub eax, ebp
sar eax, 1
jne 0x4b508b
mov eax, dword [edx + 4]
test eax, eax
jne 0x4b5082
lea eax, [edx + 8]
push eax
lea ecx, [edx + 0x10]
call fcn.004017d0
cmp ebx, dword [esi + 8]
jge 0x4b5268
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 0x10]
add eax, edi
test ecx, ecx
jne 0x4b50a4
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 0x64fbb8
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4b510b
lea ecx, [esp + 0x28]
call fcn.004b1950
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.004b1ac0
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004b1ab0
jmp 0x4b5217
cmp ebx, dword [esi + 8]
jge 0x4b5268
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 0x6612ec
push edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x4b5268
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 0x4b5268
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 0x4b5170
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 0x4b5268
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 0x4b5268
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 0x4b5268
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 0x4b5044
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b5235
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.005f85e7
add esp, 0x234
ret
call fcn.005cfbb9
int3