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

Disassembly:
push 0xffffffffffffffff
push 0x49cab1
mov eax, dword fs:[0]
push eax
mov eax, 0x10080
call fcn.00484be0
mov eax, dword [0x4c86e0]
xor eax, esp
mov dword [esp + 0x10078], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x10094]
mov dword fs:[0], eax
mov eax, dword [esp + 0x100a4]
mov esi, ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004019c0
xor ebp, ebp
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x100a0], ebp
call fcn.004019c0
mov byte [esp + 0x1009c], 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4461a7
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
call fcn.00463b0a
push ebp
mov byte [esp + 0x100a0], 2
mov edx, dword [esp + 0x18]
push 0x1001
push edx
lea ecx, [esp + 0x2c]
call fcn.00463f76
test eax, eax
jne 0x44623c
lea ecx, [esp + 0x20]
mov byte [esp + 0x1009c], 1
call fcn.00463c06
mov byte [esp + 0x1009c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446209
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1009c], 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 0x446234
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x446442
push ebp
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x10050]
push str.Agent_d
push edx
call fcn.0047eeee
add esp, 0xc
push ebp
mov ebx, 4
test byte [esp + 0x38], bl
push ebp
push ebp
jne 0x44627d
push ebx
lea eax, [esp + 0x1005c]
push eax
jmp 0x446286
push ebp
lea ecx, [esp + 0x1005c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebp
jne 0x4462cd
lea ecx, [esp + 0x20]
call fcn.00463aa8
lea ecx, [esp + 0x20]
mov byte [esp + 0x1009c], 1
call fcn.00463c06
mov byte [esp + 0x1009c], 0
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 0x4461fd
mov eax, dword [0x4ac588]
mov ecx, dword [str.Accept:__r_n_r_n]
mov edx, dword [0x4ac584]
mov esi, dword [esp + 0x18]
push ebp
mov dword [esp + 0x10048], eax
mov dword [esp + 0x10040], ecx
mov cx, word [0x4ac58c]
mov dword [esp + 0x10044], edx
mov dl, byte [0x4ac58e]
push 0x84000000
lea eax, [esp + 0x10044]
push eax
mov word [esp + 0x10054], cx
mov byte [esp + 0x10056], dl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x10048]
push ecx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebp
jne 0x446353
lea ecx, [esp + 0x20]
call fcn.00463aa8
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x44629b
push ebp
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x20000005
mov dword [esp + 0x48], ebx
push esi
mov dword [esp + 0x30], ebp
xor ebx, ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4463aa
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 + 0x1009c], 1
call fcn.00463c06
mov byte [esp + 0x1009c], bl
jmp 0x4461e9
cmp dword [esp + 0x1c], ebx
je 0x44649b
lea ecx, [esp + 0x30]
push ecx
push 0x4000
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x44649b
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x44646a
cmp ebx, dword [esp + 0x1c]
je 0x4463fb
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 0x1e
jl 0x44647d
lea ecx, [esp + 0x20]
call fcn.00463aa8
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov byte [esp + 0x1009c], 1
cmp ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
jne 0x4464bc
call fcn.00463c06
lea ecx, [esp + 0x14]
call fcn.00433b30
lea ecx, [esp + 0x18]
call fcn.00433b30
mov eax, 1
mov ecx, dword [esp + 0x10094]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10078]
xor ecx, esp
call fcn.0047e440
add esp, 0x1008c
ret
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
call fcn.00463858
add ebx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push ecx
push 0x4000
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4463d2
lea ecx, [esp + 0x20]
call fcn.00463aa8
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov byte [esp + 0x1009c], 1
lea ecx, [esp + 0x20]
call fcn.00463c06
lea ecx, [esp + 0x14]
call fcn.00433b30
lea ecx, [esp + 0x18]
call fcn.00433b30
or eax, 0xffffffff
jmp 0x446442