Function at 0x406e1a
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push 0x264
mov eax, 0x485f89
call fcn.00458e5d
mov dword [ebp - 4], 1
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x406e3c
lea eax, [ebp + 0xc]
push 0x49b010
push eax
call fcn.00452b2d
pop ecx
xor edi, edi
pop ecx
test eax, eax
je 0x4070d7
cmp dword [ebp + 0x1c], edi
je 0x4070d7
push str.http:__
lea eax, [ebp - 0x238]
call fcn.004017d2
push 0xffffffffffffffff
push edi
lea eax, [ebp + 8]
lea esi, [ebp - 0x238]
mov byte [ebp - 4], 2
call fcn.00401aee
push str.:8888_
mov eax, esi
push eax
call fcn.00401817
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x24]
call fcn.00401aee
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.004504c0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], edi
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x21c]
push eax
mov byte [ebp - 4], 3
call fcn.00450a1d
pop ecx
lea ecx, [ebp - 0x21c]
lea esi, [ebp - 0x270]
call fcn.00401b92
mov eax, esi
push eax
lea esi, [ebp - 0x254]
call fcn.004017f2
push 0x49b660
mov eax, esi
push eax
mov byte [ebp - 4], 4
call fcn.00401817
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x24]
call fcn.00401aee
cmp dword [ebp - 0x220], 8
mov ecx, dword [ebp - 0x234]
jae 0x406f43
lea ecx, [ebp - 0x234]
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x406f4f
lea eax, [ebp + 0x28]
push ecx
push eax
push str._S_URL:__S
push 0x595
call fcn.0041ef10
mov esi, str..SupportWrapper.cpp
push eax
mov ebx, 0x800004
mov ecx, esi
call fcn.0041f0d0
mov ecx, dword [ebp - 0x250]
add esp, 0x14
cmp dword [ebp - 0x23c], 8
jae 0x406f8a
lea ecx, [ebp - 0x250]
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x406f96
lea eax, [ebp + 0x28]
push ecx
push eax
push str._S_Local_path:__S
push 0x596
call fcn.0041ef10
push eax
mov ecx, esi
call fcn.0041f0d0
mov eax, dword [ebp - 0x234]
add esp, 0x14
cmp dword [ebp - 0x220], 8
jae 0x406fc7
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x23c], 8
mov ecx, dword [ebp - 0x250]
jae 0x406fe6
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x406ffb
lea eax, [ebp - 0x234]
push edi
push edi
push ecx
push eax
push edi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, edi
jge 0x407095
cmp ebx, 3
je 0x40705d
cmp dword [ebp + 0x3c], 8
mov ecx, dword [ebp + 0x28]
jae 0x40701e
lea ecx, [ebp + 0x28]
lea edi, [ebx + 1]
push edi
push eax
push ecx
push str.Download__S_failed_hr_d___Retry_time__d_
push 0x5a4
push ecx
call fcn.0041ef10
pop ecx
push eax
mov ebx, 0x800004
mov ecx, esi
call fcn.0041f0d0
add esp, 0x18
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, edi
xor edi, edi
cmp ebx, 3
jle 0x406fd1
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x254]
call fcn.004019bb
push edi
push ebx
lea esi, [ebp - 0x270]
call fcn.004019bb
push edi
push ebx
lea esi, [ebp - 0x238]
call fcn.004019bb
push edi
push ebx
lea esi, [ebp + 8]
call fcn.004019bb
push edi
push ebx
jmp 0x407107
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x254]
call fcn.004019bb
push edi
push ebx
lea esi, [ebp - 0x270]
call fcn.004019bb
push edi
push ebx
lea esi, [ebp - 0x238]
call fcn.004019bb
push edi
push ebx
lea esi, [ebp + 8]
call fcn.004019bb
push edi
push ebx
lea esi, [ebp + 0x24]
call fcn.004019bb
mov eax, ebx
jmp 0x407111
push str.CFGIP_is_empty
push 0x583
call fcn.0041ef10
push eax
mov ebx, 0x800004
mov ecx, str..SupportWrapper.cpp
call fcn.0041f0d0
add esp, 0xc
push edi
push 1
lea esi, [ebp + 8]
call fcn.004019bb
push edi
push 1
lea esi, [ebp + 0x24]
call fcn.004019bb
xor eax, eax
call fcn.00458ee0
ret