Function at 0x417086
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0xbc
mov eax, 0x489f16
call fcn.0044465a
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x14]
pop edi
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push str.DoNotUpgrade
push 0x48fa18
mov ebx, reloc.WS2_32.dll_bind
push ebx
mov dword [ebp - 0x6c], edi
call esi
test eax, eax
jne 0x4170ee
cmp dword [ebp - 0x74], edi
jne 0x4170ee
mov eax, dword [ebp - 0x70]
jmp 0x4170f0
xor eax, eax
test eax, eax
je 0x417104
push str.upgrade_now_allowed:_DoNotUpgrade_flag_detected
call fcn.0041fa04
pop ecx
jmp 0x4172f2
and dword [ebp - 0x6c], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push str.__installed
push 0x48eff0
push ebx
mov dword [ebp - 0x70], edi
call esi
test eax, eax
jne 0x417132
cmp dword [ebp - 0x74], edi
jne 0x417132
mov eax, dword [ebp - 0x7c]
jmp 0x417134
xor eax, eax
xor esi, esi
cmp eax, esi
je 0x41714d
xor edi, edi
inc edi
push str.upgrade_unconditional_on_first_time
mov dword [ebp - 0x6c], edi
call fcn.0041f771
pop ecx
jmp 0x41716c
call fcn.004166fc
test eax, eax
jne 0x417169
push str.upgrade_not_allowed_on_this_client
call fcn.0041fa04
xor eax, eax
pop ecx
inc eax
jmp 0x4172f4
xor edi, edi
inc edi
call fcn.0041577f
push eax
push str._sclient_upgrade.json
lea ecx, [ebp - 0x4c]
call fcn.0041dbb7
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], esi
call fcn.00420d9c
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], esi
je 0x4172de
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4171a7
lea eax, [ebp - 0x2c]
push 0x32e3
push eax
push str.https:___s:_d_client_client_upgrade.json
lea esi, [ebp - 0x68]
call fcn.0041dc15
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x4171cd
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x4171d9
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x78]
push edx
push ecx
push eax
call fcn.0041fe6a
test eax, eax
je 0x4172c3
cmp dword [ebp - 0x78], 0xc8
jne 0x4172c3
lea edi, [ebp - 0xc8]
call fcn.00416972
sub esp, 0x20
mov byte [ebp - 4], 3
mov dword [ebp - 0x7c], esp
mov eax, esp
mov ecx, edi
push ecx
push eax
call fcn.0040b167
lea ecx, [ebp - 0xa8]
call fcn.00416b45
add esp, 0x20
push dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 4
call fcn.004158b2
cmp dword [ebp - 0x6c], 0
mov edi, eax
je 0x417275
test edi, edi
je 0x417275
push str.clear_first_upgrade_mark
call fcn.0041f771
mov dword [esp], str.__installed
push 0x48eff0
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea esi, [ebp - 0xa8]
call fcn.0041824a
push dword [ebp - 0xa8]
call fcn.004437e4
pop ecx
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 2
call fcn.00408b66
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x68]
call fcn.00403c15
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00403c15
push esi
push 1
lea esi, [ebp - 0x4c]
call fcn.00403d0d
mov eax, edi
jmp 0x4172f4
push dword [ebp - 0x78]
push str.download_client_upgrade_error:_d
call fcn.0041fb6f
pop ecx
pop ecx
xor esi, esi
push esi
push edi
lea ecx, [ebp - 0x68]
call fcn.00403c15
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.00403c15
push esi
push edi
lea esi, [ebp - 0x4c]
call fcn.00403d0d
xor eax, eax
call fcn.004446dd
ret 0x10