Function at 0x405080
Capabilities:
Download url
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535064
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x586e90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x270], eax
xor eax, eax
mov dword [ebp - method.CUrlDownloadToFileCallback.virtual_0], vtable.CUrlDownloadToFileCallback.0
mov byte [ebp - 0x26c], al
lea ebx, [ebp - 0x254]
mov dword [ebp - 4], eax
call fcn.00401040
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], esi
jb 0x4050e7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x278]
call fcn.00408db0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x240], esi
jb 0x40510e
mov eax, dword [ebp - 0x254]
push eax
call fcn.0040f643
add esp, 4
xor ecx, ecx
mov ebx, 7
xor esi, esi
lea edi, [ebp - 0x238]
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], esi
mov word [ebp - 0x254], cx
call fcn.00401370
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], edi
jb 0x405145
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x260]
call fcn.00408db0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x224], edi
jb 0x40516c
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040f643
add esp, 4
push 0x206
lea edx, [ebp - 0x21a]
xor eax, eax
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], ax
mov word [ebp - 0x21c], cx
call fcn.00511ac0
add esp, 0xc
call fcn.0040f6aa
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4051b9
push 0x80004005
call fcn.004038b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], bl
call fcn.0040f6aa
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4051e8
push 0x80004005
call fcn.004038b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x238]
push ecx
mov byte [ebp - 4], 8
call fcn.004011e0
add esp, 4
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], edi
jb 0x405218
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x268]
call fcn.00408db0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x224], edi
jb 0x40523f
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040f643
add esp, 4
push str.Notice.ini
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x258]
xor eax, eax
push edx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], ax
call fcn.004089e0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0xc
mov eax, dword [esi]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x40528c
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.00403580
mov esi, dword [esi]
push esi
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x565304
push str.DownloadURL
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4052d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4052e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.00403730
mov eax, dword [ebp - 0x25c]
cmp dword [eax - 0xc], 0
jne 0x405320
push str.StartDownloadWork:DownloadURL_is_NULL
call fcn.00408e80
add esp, 4
jmp 0x405535
cmp dword [eax - 4], ebx
jle 0x40533a
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x25c]
call fcn.00403580
mov eax, dword [ebp - 0x25c]
push eax
push str.StartDownloadWork:DownloadURL_is_________s_
call fcn.00408e80
add esp, 4
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x258], esp
mov ecx, esp
push eax
call fcn.00408950
lea edi, [ebp - 0x258]
call fcn.004078f0
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0xd
call fcn.004087c0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40539d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x25c]
cmp dword [esi - 4], ebx
jle 0x4053bd
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.00403580
mov esi, dword [ebp - 0x25c]
push esi
push str.StartDownloadWork:DownloadURL_szUrl___s
call fcn.00408e80
push str.Install.zip
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x258]
push eax
call fcn.004089e0
add esp, 0x14
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0xe
call fcn.004087c0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405419
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x274]
push ecx
push 0
push edx
push esi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x4054cf
push str.StartDownloadWork:DownloadURL_Success
call fcn.00408e80
add esp, 4
push str.Notice.ini
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.004089e0
mov edx, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0xc
push edx
push 0x56474c
push str.DownloadOver
push str.INSTALL
call esi
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40549e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Notice.ini
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x258]
push edx
call fcn.004089e0
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x5649e8
push str.UpdateOver
push str.INSTALL
call esi
jmp 0x405513
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartDownloadWork:DownloadURL_Fail_GetLastError_is_________d_
call fcn.00408e80
push str.Notice.ini
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x258]
push edx
call fcn.004089e0
mov eax, dword [eax]
add esp, 0x14
push eax
push 0x5649e8
push str.DownloadOver
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405535
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Download_OVER
call fcn.00408e80
add esp, 4
push 0
call fcn.0050f893
int3