Function at 0x403490
Capabilities:
Check if file exists
Check internet connectivity via wininet
Create http request
Delete file
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49d471
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1007c
call fcn.00484be0
mov eax, dword [0x4c86e0]
xor eax, esp
mov dword [esp + 0x10078], eax
push ebx
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x10090]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004019c0
xor ebx, ebx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1009c], ebx
call fcn.004019c0
mov byte [esp + 0x10098], 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403519
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
call fcn.00463b0a
push ebx
mov byte [esp + 0x1009c], 2
mov edx, dword [esp + 0x18]
push 0x1001
push edx
lea ecx, [esp + 0x2c]
call fcn.00463f76
test eax, eax
jne 0x4035ad
lea ecx, [esp + 0x20]
mov byte [esp + 0x10098], 1
call fcn.00463c06
mov byte [esp + 0x10098], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40357a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10098], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x4037ed
push ebx
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x10048]
push str.Agent_d
push edx
call fcn.0047eeee
add esp, 0xc
test byte [esp + 0x30], 4
push ebx
push ebx
push ebx
jne 0x4035eb
push 4
lea eax, [esp + 0x10054]
push eax
jmp 0x4035f4
push ebx
lea ecx, [esp + 0x10054]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
jne 0x40363a
lea ecx, [esp + 0x20]
call fcn.00463aa8
lea ecx, [esp + 0x20]
mov byte [esp + 0x10098], 1
call fcn.00463c06
mov byte [esp + 0x10098], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40356e
mov eax, dword [0x4ac588]
mov ecx, dword [str.Accept:__r_n_r_n]
mov edx, dword [0x4ac584]
mov esi, dword [esp + 0x18]
push ebx
mov dword [esp + 0x10040], eax
mov dword [esp + 0x10038], ecx
mov cx, word [0x4ac58c]
mov dword [esp + 0x1003c], edx
mov dl, byte [0x4ac58e]
push 0x84000000
lea eax, [esp + 0x1003c]
push eax
mov word [esp + 0x1004c], cx
mov byte [esp + 0x1004e], dl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x10040]
push ecx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x4036ec
lea ecx, [esp + 0x20]
call fcn.00463aa8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x20]
mov byte [esp + 0x10098], 1
call fcn.00463c06
mov byte [esp + 0x10098], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40356e
lea ecx, [esp + 0x1c]
push ecx
push 0x4000
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403737
mov eax, dword [esp + 0x1c]
cmp eax, ebx
lea ecx, [esp + 0x20]
je 0x403774
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00463858
lea ecx, [esp + 0x1c]
push ecx
push 0x4000
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403706
lea ecx, [esp + 0x20]
call fcn.00463aa8
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x10098], 1
call fcn.00463c06
lea ecx, [esp + 0x14]
call fcn.00433b30
lea ecx, [esp + 0x18]
call fcn.00433b30
or eax, 0xffffffff
jmp 0x4037ed
call fcn.00463aa8
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x10098], 1
call fcn.00463c06
mov byte [esp + 0x10098], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10098], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10090]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10078]
xor ecx, esp
call fcn.0047e440
mov esp, ebp
pop ebp
ret