Function at 0x413083
Capabilities:
Check if file exists
Connect to http server
Create http request
Download url
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [0x4aa3ec]
xor eax, ebp
mov dword [ebp + 0x1d0], eax
mov eax, dword [ebp + 0x1e0]
push ebx
mov ebx, dword [ebp + 0x1dc]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], edi
mov dword [esi + 0x21c], edi
mov dword [esi + 0x220], edi
cmp ebx, edi
je 0x41327d
call fcn.00406ee2
test eax, eax
je 0x41327d
cmp dword [esi + 0x21c], 1
je 0x41327d
cmp dword [esi + 0x10], edi
jne 0x41311f
push edi
push edi
push dword [ebp - 0x34]
push ebx
push edi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, edi
mov dword [ebp - 0x38], eax
jl 0x413112
push dword [ebp - 0x34]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413112
xor eax, eax
inc eax
jmp 0x41327f
cmp dword [ebp - 0x38], 0x800c0006
je 0x41327d
lea eax, [ebp - 0x80]
push eax
push ebx
mov ecx, esi
mov dword [ebp - 0x38], edi
call fcn.00412df3
test eax, eax
je 0x41327d
cmp dword [ebp - 0x74], 3
jne 0x41327d
or dword [ebp - 0x3c], 0xffffffff
cmp dword [ebp - 0x34], edi
je 0x41316d
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x413278
lea eax, [esi + 0x14]
cmp word [eax], di
jne 0x41317a
mov eax, str.Mozila_4.0__compatible__MSIE_5.0__360Safe_
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x34], eax
cmp eax, edi
je 0x413246
cmp dword [esi + 0x21c], edi
jne 0x413246
push eax
mov ecx, esi
call fcn.00412d76
push 2
mov ecx, esi
call fcn.00412ee8
push dword [ebp - 0x6c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x70]
push pe_nt_image_headers32
push eax
call fcn.0041303b
push edi
push edi
push 3
push edi
push edi
push dword [ebp - 0x68]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
cmp ebx, edi
je 0x413248
cmp dword [esi + 0x21c], edi
jne 0x413248
push edi
push 0x84000100
push 0x4a8728
push edi
push 0x486690
push dword [ebp - 0x54]
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x38], eax
cmp eax, edi
je 0x413248
cmp dword [esi + 0x21c], edi
jne 0x413248
lea ecx, [ebp - 0x44]
push ecx
push eax
mov ecx, esi
call fcn.00412e44
test eax, eax
je 0x413248
cmp dword [esi + 0x220], 0xc8
jne 0x413248
cmp dword [esi + 0x21c], edi
jne 0x413248
push dword [ebp - 0x3c]
mov ecx, esi
push dword [ebp - 0x38]
call fcn.00412f3c
mov dword [ebp - 0x40], eax
jmp 0x413248
mov ebx, edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x413257
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x38], edi
je 0x413267
push dword [ebp - 0x38]
call esi
cmp ebx, edi
je 0x41326e
push ebx
call esi
cmp dword [ebp - 0x34], edi
je 0x413278
push dword [ebp - 0x34]
call esi
mov eax, dword [ebp - 0x40]
jmp 0x41327f
xor eax, eax
mov ecx, dword [ebp + 0x1d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004409d4
add ebp, 0x1d4
leave
ret 8