Function at 0x418a14
Capabilities:
Download url
Get common file path
Query or enumerate registry value
Receive data

Disassembly:
push 8
push 0x648
mov eax, 0x4e7039
call fcn.004e34f5
and dword [ebp - 0x58c], 0
lea eax, [ebp - 0x58c]
push eax
push 0x20019
push 0
push str.SOFTWARECSO2_GLOBAL_LAUNCHER
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
push 0x10
pop esi
test eax, eax
jne 0x418b4d
lea eax, [ebp - 0x598]
mov dword [ebp - 0x590], 1
push eax
lea eax, [ebp - 0x520]
mov dword [ebp - 0x598], 0x400
push eax
lea eax, [ebp - 0x590]
push eax
push 0
push str.Version
push dword [ebp - 0x58c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418b4d
push dword [ebp - 0x58c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x538], 0
lea ecx, [ebp - 0x520]
and dword [ebp - 0x528], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x524], edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418ac5
sub ecx, edx
lea eax, [ebp - 0x520]
push ecx
push eax
lea ecx, [ebp - 0x538]
call fcn.00408b44
mov byte [ebp - 0x584], 0
lea eax, [ebp - 0x538]
push dword [ebp - 0x584]
mov ecx, 0x64a33c
push eax
call fcn.004068f5
mov eax, dword [ebp - 0x524]
cmp eax, esi
jb 0x418b4d
mov ecx, dword [ebp - 0x538]
inc eax
mov dword [ebp - 0x588], eax
mov dword [ebp - 0x584], ecx
cmp eax, 0x1000
jb 0x418b44
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x584]
push eax
call fcn.00403c47
mov eax, dword [ebp - 0x588]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x584]
push eax
push ecx
call fcn.00482b0d
pop ecx
pop ecx
cmp dword [0x64a34c], 0
je 0x418dbb
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov dword [ebp - 0x524], edi
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x538], eax
mov dword [ebp - 0x528], eax
lea edx, [ecx + 1]
mov byte [ebp - 0x538], al
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418b8f
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x538]
call fcn.00408b44
and dword [ebp - 4], 0
lea ecx, [ebp - 0x538]
push 0x12
push str.update_version.txt
call fcn.0040382e
push eax
lea ecx, [ebp - 0x568]
call fcn.004036f2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x524]
cmp eax, esi
jb 0x418c1f
mov ecx, dword [ebp - 0x538]
inc eax
mov dword [ebp - 0x584], eax
mov dword [ebp - 0x588], ecx
cmp eax, 0x1000
jb 0x418c16
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x588]
push eax
call fcn.00403c47
mov eax, dword [ebp - 0x584]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x588]
push eax
push ecx
call fcn.00482b0d
pop ecx
pop ecx
sub esp, 0x18
mov dword [ebp - 0x524], edi
mov ecx, esp
xor eax, eax
mov byte [ebp - 0x590], al
mov dword [ebp - 0x528], eax
push str.6_3xls_tlclbvlerq620l411l__6
push dword [ebp - 0x590]
mov byte [ebp - 0x538], al
push 0x20
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edi
call fcn.00408ad5
lea ecx, [ebp - 0x550]
call fcn.0040eeb5
add esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x550]
cmp dword [ebp - 0x53c], esi
cmovae eax, dword [ebp - 0x550]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
cmp dword [ebp - 0x554], esi
lea ecx, [ebp - 0x568]
lea eax, [ebp - 0x550]
cmovae ecx, dword [ebp - 0x568]
cmp dword [ebp - 0x53c], esi
cmovae eax, dword [ebp - 0x550]
xor edx, edx
push edx
push edx
push ecx
push eax
push edx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jne 0x418da5
cmp dword [ebp - 0x554], esi
lea eax, [ebp - 0x568]
lea ecx, [ebp - 0x658]
cmovae eax, dword [ebp - 0x568]
sub esp, 0xc
push eax
call fcn.00405add
mov byte [ebp - 4], 4
xor ecx, ecx
mov eax, dword [ebp - 0x658]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x64c], ecx
jne 0x418d9a
mov eax, dword [ebp + eax - 0x620]
test eax, eax
mov word [ebp - 0x590], 1
push dword [ebp - 0x590]
mov byte [ebp - 0x597], cl
sete byte [ebp - 0x598]
push ecx
push dword [ebp - 0x598]
push eax
push ecx
lea ecx, [ebp - 0x580]
call fcn.0041e71d
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 5
call fcn.00405a62
push str.del__q__temp_update_version.txt
call fcn.004abb4f
lea ecx, [ebp - 0x580]
mov dword [esp], 0x64a33c
call fcn.00420ba6
lea ecx, [ebp - 0x580]
test al, al
jne 0x418d95
call fcn.00403cab
lea ecx, [ebp - 0x658]
call fcn.0040423a
lea ecx, [ebp - 0x550]
call fcn.00403cab
lea ecx, [ebp - 0x568]
call fcn.00403cab
mov al, 1
jmp 0x418dbd
call fcn.00403cab
lea ecx, [ebp - 0x658]
call fcn.0040423a
lea ecx, [ebp - 0x550]
call fcn.00403cab
lea ecx, [ebp - 0x568]
call fcn.00403cab
xor al, al
mov ecx, dword [ebp - 0x14]
call fcn.004e34d3
ret