Function at 0x4feee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a7f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jne 0x4fef5f
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4fef23
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x4fef65
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x4ff351
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x4ff351
push edx
call fcn.0051de13
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
test edi, edi
mov dword [ebp + 0xc], 0x104
je 0x4fefda
mov eax, dword [ecx + 0x3a8]
test eax, eax
jne 0x4fef8b
push edi
call fcn.004ffed0
test al, al
je 0x4ff351
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
lea edx, [ebp - 0x1b4]
push eax
mov eax, dword [ecx + 0x3a8]
push edx
push 0
push 0
push str.LocalFileName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4ff045
mov ecx, dword [ebp - 0x14]
push str.Can_not_find_in_registry_old_localFileName._n
mov ecx, dword [ecx + 0x3a0]
call fcn.004c96f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push ebx
lea edx, [ebp - 0xb0]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push edx
call fcn.0051d0e8
add esp, 0x10
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ff351
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x1b4]
push edx
push eax
push 0
push 0
push str.LocalFileName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ff351
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5b5ecc]
mov dword [ebp + 0x10], eax
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 1
push ecx
call fcn.0051de13
add esp, 4
cmp eax, 0xffffffff
jne 0x4ff090
lea edx, [ebp - 0x1b4]
lea eax, [ebp + 0x10]
push edx
push str.Could_not_delete_temp_file__s_n
push eax
call fcn.0053091a
add esp, 0xc
test edi, edi
je 0x4ff0ff
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
push ecx
mov ecx, dword [edx + 0x3a0]
jmp 0x4ff0b9
lea eax, [ebp - 0x1b4]
lea ecx, [ebp + 0x10]
push eax
push str.Deleting_temp_file__s_n
push ecx
call fcn.0053091a
add esp, 0xc
test edi, edi
je 0x4ff0ff
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [eax + 0x3a0]
call fcn.004c96f0
push edi
lea ecx, [ebp - 0xb0]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.0051d0e8
add esp, 0xc
lea edx, [ebp - 0x30]
lea eax, [ebp + 8]
lea ecx, [ebp - 0xb0]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4ff13a
push esi
push ebx
lea edx, [ebp - 0xb0]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.0051d0e8
add esp, 0x10
lea eax, [ebp + 8]
lea ecx, [ebp - 0xb0]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ff345
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x2c]
push edx
push eax
push 0
push 0
push 0x59d84c
push ecx
mov dword [ebp + 0xc], 0x10
call ebx
test eax, eax
jne 0x4ff33b
lea edi, [ebp - 0x1b4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call fcn.005380a1
mov esi, eax
add esp, 4
test esi, esi
je 0x4ff345
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4ff2b8
push eax
lea edx, [ebp - 0x1c]
push 0x5ae160
push edx
mov edi, eax
call fcn.0051d0e8
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push ecx
push 0
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x4ff212
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x1b4]
push ecx
push edx
push str._s_d
push esi
call fcn.0051d0e8
push esi
call fcn.0051de13
add esp, 0x14
cmp eax, 0xffffffff
push esi
jne 0x4ff1ef
push str.Could_not_delete_temp_file__s_n
jmp 0x4ff1f4
push str.Deleting_temp_file__s_n
lea eax, [ebp + 0x10]
push eax
call fcn.0053091a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, dword [edx + 0x3a0]
call fcn.004c96f0
push edi
lea eax, [ebp - 0x1c]
push 0x597df0
push eax
call fcn.0051d0e8
add esp, 0xc
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
push edx
push 0
push 0
push eax
push ecx
call ebx
test eax, eax
je 0x4ff264
push eax
lea edx, [ebp + 0x10]
push str.Error_read_registry__errCode___d._End_rebuilding._n
push edx
call fcn.0053091a
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [edi + 0x3a0]
push eax
call fcn.004c96f0
jmp 0x4ff2bb
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x1b4]
push ecx
push edx
push str._s_d
push esi
call fcn.0051d0e8
push esi
call fcn.0051de13
add esp, 0x14
cmp eax, 0xffffffff
push esi
jne 0x4ff2b1
push str.Could_not_delete_temp_file__s_n
lea eax, [ebp + 0x10]
push eax
call fcn.0053091a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, dword [edx + 0x3a0]
call fcn.004c96f0
jmp 0x4ff189
push str.Deleting_temp_file__s_n
jmp 0x4ff28e
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push eax
push ecx
push 0
push 0
push 0x5b2a68
push edx
call ebx
test eax, eax
jne 0x4ff332
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1b4]
push eax
push ecx
push str._s_d
push esi
call fcn.0051d0e8
push esi
call fcn.0051de13
add esp, 0x14
cmp eax, 0xffffffff
push esi
jne 0x4ff312
lea edx, [ebp + 0x10]
push str.Could_not_delete_temp_file__s_n
push edx
call fcn.0053091a
mov eax, dword [ebp + 0x10]
add esp, 0xc
push eax
jmp 0x4ff327
lea ecx, [ebp + 0x10]
push str.Deleting_temp_file__s_n
push ecx
call fcn.0053091a
mov edx, dword [ebp + 0x10]
add esp, 0xc
push edx
mov ecx, dword [edi + 0x3a0]
call fcn.004c96f0
push esi
call fcn.005380ca
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc