Function at 0x40f850
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Delete file
Download and write a file
Parse url
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41f0cb
mov eax, dword fs:[0]
push eax
mov eax, 0x5060
call fcn.0041d0a0
mov eax, dword [0x42afb8]
xor eax, esp
mov dword [esp + 0x505c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42afb8]
xor eax, esp
push eax
lea eax, [esp + 0x5074]
mov dword fs:[0], eax
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x75]
push ebx
push eax
mov dword [esp + 0x5088], 1
mov byte [esp + 0x23], bl
mov byte [esp + 0x7c], bl
call sub.MSVCR80.dll_memset
push 0xfff
lea ecx, [esp + 0x3081]
push ebx
push ecx
mov byte [esp + 0x3088], bl
call sub.MSVCR80.dll_memset
push 0xfff
lea edx, [esp + 0x108d]
push ebx
push edx
mov byte [esp + 0x1094], bl
call sub.MSVCR80.dll_memset
push 0xfff
lea eax, [esp + 0x2099]
push ebx
push eax
mov byte [esp + 0x20a0], bl
call sub.MSVCR80.dll_memset
push 0xfff
lea ecx, [esp + 0x40a5]
push ebx
push ecx
mov byte [esp + 0x40ac], bl
call sub.MSVCR80.dll_memset
push 0x38
lea edx, [esp + 0x78]
push ebx
push edx
call sub.MSVCR80.dll_memset
mov ebp, dword [esp + 0x50cc]
lea ecx, [esp + 0x30b8]
mov dword [esp + 0x8c], ecx
add esp, 0x48
lea ecx, [esp + 0x2070]
lea eax, [esp + 0x70]
lea edx, [esp + 0x1070]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x38], eax
mov eax, 0x1000
mov dword [esp + 0x50], edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x4074]
mov dword [esp + 0x38], 0x3c
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov eax, dword [ebp - 0xc]
push ebx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40fa00
lea eax, [ebp - 0x10]
mov byte [esp + 0x507c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f9cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5088]
add eax, 0xfffffff0
mov dword [esp + 0x507c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40fc06
mov ecx, dword [esp + 0x5088]
push ebx
push 0x80
push 2
push ebx
push ebx
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
je 0x40fbab
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
cmp eax, ebx
jne 0x40fb8e
push ebx
push ebx
push ebx
push ebx
push str.ACDSee_MessageCenter_1.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x2c], edi
je 0x40fb8e
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
push ebx
push ebx
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x24], esi
je 0x40fb83
mov ecx, dword [esp + 0x60]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402c30
mov edx, dword [esp + 0x68]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x5080], 2
call fcn.00405570
mov eax, dword [esp + 0x1c]
push ebx
push 0x806cc200
push ebx
push ebx
push ebx
push eax
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x40fb6f
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x40fb5d
mov ebp, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push edi
call ebp
test eax, eax
je 0x40fb5d
mov edx, dword [esp + 0x18]
push edx
call fcn.0041c818
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
lea eax, [esp + 0x28]
push eax
push ecx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x40fb53
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40fb4e
push ebx
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push edi
call ebp
test eax, eax
jne 0x40faf1
jmp 0x40fb5d
mov byte [esp + 0x17], 1
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x5084]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x1c]
call fcn.00401810
mov edi, dword [esp + 0x2c]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x17], bl
jne 0x40fbb1
mov edx, dword [esp + 0x5088]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40fbb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x10]
mov byte [esp + 0x507c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fbd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5088]
add eax, 0xfffffff0
mov dword [esp + 0x507c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x5074]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x505c]
xor ecx, esp
call fcn.0041ce52
add esp, 0x506c
ret