Function at 0x5b43f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x294]
sub esp, 0x294
push 0xffffffffffffffff
push 0x63e0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x290], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0x29c]
test esi, esi
jne 0x5b44a4
cmp dword [ebp + 0x2a0], esi
je 0x5b4454
mov edi, dword [ebp + 0x2a4]
test edi, edi
jne 0x5b44aa
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x5b447d
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b4460
sub eax, esi
sar eax, 1
cmp eax, 3
jbe 0x5b447d
push edx
call fcn.005fc153
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x290]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x294
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x2a4]
mov dword [ebp - 0x20], 0x104
test esi, esi
je 0x5b4505
cmp dword [ebx + 0x460], 0
jne 0x5b44ca
push esi
mov ecx, ebx
call fcn.005b24a0
test al, al
je 0x5b447d
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp]
push ecx
push 0
push 0
push 0x65d364
mov edx, dword [ebx + 0x460]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5b4571
push str.Can_not_find_in_registry_old_localFileName._n
mov ecx, dword [ebx + 0x458]
call fcn.005547b0
jmp 0x5b447d
push edi
mov eax, dword [ebp + 0x2a0]
push eax
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld
lea ecx, [ebp + 0x208]
push ecx
call fcn.005fb4cb
add esp, 0x10
lea edx, [ebp - 0x18]
push edx
push 0xf003f
push 0
lea eax, [ebp + 0x208]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5b447d
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp]
push edx
push eax
push eax
push 0x65d364
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5b447d
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 1
lea edx, [ebp]
push edx
call fcn.005fc153
add esp, 4
cmp eax, 0xffffffff
jne 0x5b45bd
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417ab0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
push ecx
push str.Could_not_delete_temp_file__s_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0xc
test esi, esi
je 0x5b45f5
mov eax, dword [ebp - 0x14]
push eax
jmp 0x5b45ea
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00417ab0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
push edx
push str.Deleting_temp_file__s_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0xc
test esi, esi
je 0x5b45f5
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebx + 0x458]
call fcn.005547b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402550
test esi, esi
je 0x5b476a
push esi
push str.SoftwareDownloadManager_ldChList
lea edx, [ebp + 0x208]
push edx
call fcn.005fb4cb
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
lea edx, [ebp + 0x208]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
push 0x65d310
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b48ed
lea eax, [ebp]
lea edx, [eax + 2]
jmp 0x5b4680
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b4680
sub eax, edx
sar eax, 1
add eax, 0xa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005cfaa6
add esp, 4
mov esi, eax
test esi, esi
je 0x5b47ab
jmp 0x5b46c0
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
je 0x5b4853
mov edi, eax
push eax
push 0x681158
lea eax, [ebp + 0x288]
push eax
call fcn.005fb4cb
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
lea eax, [ebp + 0x288]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b47f8
mov edx, dword [ebp - 0x3c]
push edx
lea eax, [ebp]
push eax
push str._s_d
push esi
call fcn.0040fac0
push esi
call fcn.005fc153
add esp, 0x14
push esi
cmp eax, 0xffffffff
jne 0x5b47bc
lea ecx, [ebp - 0x18]
call fcn.00417ab0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
push ecx
push str.Could_not_delete_temp_file__s_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebx + 0x458]
call fcn.005547b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x5b47f3
push edi
mov eax, dword [ebp + 0x2a0]
push eax
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
lea ecx, [ebp + 0x208]
push ecx
call fcn.005fb4cb
add esp, 0x10
lea edx, [ebp - 0x24]
push edx
push 0xf003f
push 0
lea eax, [ebp + 0x208]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5b4648
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402550
jmp 0x5b447d
lea ecx, [ebp - 0x1c]
call fcn.00417ab0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Deleting_temp_file__s_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebx + 0x458]
call fcn.005547b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402550
push edi
push 0x64f36c
lea ecx, [ebp + 0x288]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
lea ecx, [ebp + 0x288]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5b490f
push eax
push str.Error_read_registry__errCode___d._End_rebuilding._n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebx + 0x458]
call fcn.005547b0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0x68ac7c
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b48e4
mov edx, dword [ebp - 0x3c]
push edx
lea eax, [ebp]
push eax
push str._s_d
push esi
call fcn.0040fac0
push esi
call fcn.005fc153
add esp, 0x14
push esi
lea ecx, [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x5b48ab
call fcn.00417ab0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Could_not_delete_temp_file__s_n
jmp 0x5b48bd
call fcn.00417ab0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Deleting_temp_file__s_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebx + 0x458]
call fcn.005547b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402550
push esi
call fcn.005cfa9b
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402550
mov dword [ebp - 4], 0xffffffff
jmp 0x5b447d
mov ecx, dword [ebp - 0x3c]
push ecx
lea edx, [ebp]
push edx
push str._s_d
push esi
call fcn.0040fac0
push esi
call fcn.005fc153
add esp, 0x14
push esi
cmp eax, 0xffffffff
jne 0x5b4972
lea ecx, [ebp - 0x2c]
call fcn.00417ab0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
push eax
push str.Could_not_delete_temp_file__s_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebx + 0x458]
call fcn.005547b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402550
jmp 0x5b46c0
lea ecx, [ebp - 0x28]
call fcn.00417ab0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x28]
push eax
push str.Deleting_temp_file__s_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebx + 0x458]
call fcn.005547b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402550
jmp 0x5b46c0