Function at 0x5e3590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2bc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jne 0x5e3612
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x5e35d3
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x5e3618
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x5e387d
push eax
call fcn.00609a4e
add esp, 4
cmp eax, 3
jbe 0x5e387d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.0060b6fb
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 edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
test esi, esi
mov dword [ebp + 0xc], 0x104
je 0x5e368d
mov eax, dword [ecx + 0x43c]
test eax, eax
jne 0x5e363e
push esi
call fcn.005e6030
test al, al
je 0x5e387d
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x43c]
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x2c8]
push edx
push eax
push 0
push 0
push 0x6d10ac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5e36f8
mov edx, dword [ebp - 0x14]
push str.Can_not_find_in_registry_old_localFileName._n
mov ecx, dword [edx + 0x434]
call fcn.0056fe30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
push ebx
lea eax, [ebp - 0xc0]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
push eax
call fcn.0060a593
add esp, 0x10
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0xc0]
push ecx
push 0xf003f
push 0
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5e387d
mov edx, dword [ebp - 0x18]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x2c8]
push eax
push ecx
push 0
push 0
push 0x6d10ac
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5e387d
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x6f7b78]
mov dword [ebp + 0x10], ecx
lea edx, [ebp - 0x2c8]
mov byte [ebp - 4], 1
push edx
call fcn.0060b6fb
add esp, 4
cmp eax, 0xffffffff
jne 0x5e3760
lea eax, [ebp - 0x2c8]
lea ecx, [ebp - 0x18]
push eax
call fcn.00622e4a
mov ecx, dword [ebp - 0x18]
lea edx, [ebp + 0x10]
push ecx
push str.Could_not_delete_temp_file__s_n
push edx
mov byte [ebp - 4], 2
call fcn.0061fae1
add esp, 0xc
test esi, esi
je 0x5e3757
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ecx + 0x434]
call fcn.0056fe30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x5e37a5
lea edx, [ebp - 0x2c8]
lea ecx, [ebp - 0x18]
push edx
call fcn.00622e4a
mov eax, dword [ebp - 0x18]
lea ecx, [ebp + 0x10]
push eax
push str.Deleting_temp_file__s_n
push ecx
mov byte [ebp - 4], 3
call fcn.0061fae1
add esp, 0xc
test esi, esi
je 0x5e379e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [eax + 0x434]
call fcn.0056fe30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00622d8a
test esi, esi
je 0x5e37ef
push esi
lea ecx, [ebp - 0xc0]
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.0060a593
add esp, 0xc
lea edx, [ebp - 0x40]
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc0]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x5e3826
push edi
push ebx
lea edx, [ebp - 0xc0]
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
push edx
call fcn.0060a593
add esp, 0x10
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc0]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5e3871
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x3c]
push edx
push eax
push 0
push 0
push 0x6d1064
push ecx
mov dword [ebp + 0xc], 0x10
call ebx
test eax, eax
jne 0x5e3b30
lea edx, [ebp - 0x2c8]
push edx
call fcn.00609a4e
lea eax, [eax + eax + 0x14]
push eax
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
jne 0x5e3895
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.00622d8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00622d8a
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
je 0x5e3a6b
push eax
lea ecx, [ebp - 0x2c]
push 0x6e8c04
push ecx
mov esi, eax
call fcn.0060a593
add esp, 0xc
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push edx
mov edx, dword [ebp + 8]
push eax
push 0
push 0
push ecx
push edx
call ebx
test eax, eax
jne 0x5e3973
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c8]
push eax
push ecx
push str._s_d
push edi
call fcn.0060aac7
push edi
call fcn.0060b6fb
add esp, 0x14
cmp eax, 0xffffffff
push edi
jne 0x5e3934
lea ecx, [ebp - 0x18]
call fcn.00622e4a
mov edx, dword [ebp - 0x18]
lea eax, [ebp + 0x10]
push edx
push str.Could_not_delete_temp_file__s_n
push eax
mov byte [ebp - 4], 4
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, dword [edx + 0x434]
call fcn.0056fe30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x5e396e
lea ecx, [ebp - 0x24]
call fcn.00622e4a
mov eax, dword [ebp - 0x24]
lea ecx, [ebp + 0x10]
push eax
push str.Deleting_temp_file__s_n
push ecx
mov byte [ebp - 4], 5
call fcn.0061fae1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [eax + 0x434]
push edx
call fcn.0056fe30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00622d8a
push esi
lea ecx, [ebp - 0x2c]
push 0x6c9150
push ecx
call fcn.0060a593
add esp, 0xc
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push edx
mov edx, dword [ebp + 8]
push eax
push 0
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x5e39c8
push eax
lea eax, [ebp + 0x10]
push str.Error_read_registry__errCode___d._End_rebuilding._n
push eax
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x434]
call fcn.0056fe30
jmp 0x5e3a6e
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c8]
push edx
push eax
push str._s_d
push edi
call fcn.0060aac7
push edi
call fcn.0060b6fb
add esp, 0x14
cmp eax, 0xffffffff
push edi
jne 0x5e3a2c
lea ecx, [ebp - 0x20]
call fcn.00622e4a
mov ecx, dword [ebp - 0x20]
lea edx, [ebp + 0x10]
push ecx
push str.Could_not_delete_temp_file__s_n
push edx
mov byte [ebp - 4], 6
call fcn.0061fae1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [ecx + 0x434]
push eax
call fcn.0056fe30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
jmp 0x5e3890
lea ecx, [ebp - 0x1c]
call fcn.00622e4a
mov edx, dword [ebp - 0x1c]
lea eax, [ebp + 0x10]
push edx
push str.Deleting_temp_file__s_n
push eax
mov byte [ebp - 4], 7
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, dword [edx + 0x434]
call fcn.0056fe30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jmp 0x5e3890
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x3c]
push eax
push ecx
push 0
push 0
push 0x6f05a4
push edx
call ebx
test eax, eax
jne 0x5e3b27
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c8]
push eax
push ecx
push str._s_d
push edi
call fcn.0060aac7
push edi
call fcn.0060b6fb
add esp, 0x14
cmp eax, 0xffffffff
push edi
jne 0x5e3aeb
lea ecx, [ebp - 0x1c]
call fcn.00622e4a
mov edx, dword [ebp - 0x1c]
lea eax, [ebp + 0x10]
push edx
push str.Could_not_delete_temp_file__s_n
push eax
mov byte [ebp - 4], 8
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x434]
call fcn.0056fe30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jmp 0x5e3b22
lea ecx, [ebp - 0x1c]
call fcn.00622e4a
mov edx, dword [ebp - 0x1c]
lea eax, [ebp + 0x10]
push edx
push str.Deleting_temp_file__s_n
push eax
mov byte [ebp - 4], 9
call fcn.0061fae1
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x434]
call fcn.0056fe30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00622d8a
push edi
call fcn.00622af4
add esp, 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5e3871