Function at 0x401969
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x40aaac
call fcn.00409d50
sub esp, 0x428
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [edi]
cmp ecx, ebx
je 0x401996
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [edi]
push str.Initializing_...
mov eax, dword [ecx]
call dword [eax]
push ebx
push ebx
push ebx
push ebx
push str.LockXLS
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
je 0x401c2c
cmp dword [edi], ebx
mov esi, str._...
je 0x401a2e
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.004010d6
push str.Connecting_to
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push str.Connecting_to
lea ecx, [ebp - 0x2c]
call fcn.00401112
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00401e53
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401e53
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x401a19
mov eax, 0x40c1bc
mov ecx, dword [edi]
push eax
mov edx, dword [ecx]
call dword [edx]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.004010d6
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x401c2c
push ebx
push 0x84000000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push 0x4101b8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x401c23
cmp dword [edi], ebx
je 0x401aea
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.004010d6
push str.Downloading_from
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push str.Downloading_from
lea ecx, [ebp - 0x2c]
call fcn.00401112
push dword [ebp + 8]
mov dword [ebp - 4], 1
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00401e53
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401e53
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x401ad5
mov eax, 0x40c1bc
mov ecx, dword [edi]
push eax
mov edx, dword [ecx]
call dword [edx]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.004010d6
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401c23
lea eax, [ebp - 0x18]
push ebx
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 4
push eax
push 0x20000013
push dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
call esi
cmp dword [ebp - 0x30], 0x190
jae 0x401c1a
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.00401926
test eax, eax
jne 0x401c1a
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000005
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x401c1a
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
push dword [ebp - 0x14]
mov byte [ebp + 0xb], bl
call fcn.00401c50
mov ecx, dword [edi]
cmp ecx, ebx
je 0x401b7e
mov eax, dword [ecx]
push dword [ebp - 0x14]
call dword [eax + 4]
mov ecx, edi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ebx
call fcn.00401926
test eax, eax
jne 0x401c1a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x434]
push 0x400
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp + 0xc], ebx
je 0x401bca
push dword [ebp + 0xc]
lea eax, [ebp - 0x434]
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi]
add dword [ebp + 0x10], eax
cmp ecx, ebx
je 0x401bde
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 8]
mov ecx, edi
call fcn.00401926
test eax, eax
jne 0x401bf8
cmp dword [ebp + 0xc], ebx
jbe 0x401bff
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jae 0x401bff
jmp 0x401b93
mov ecx, esi
call fcn.00401ca5
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x401c0a
xor eax, eax
jmp 0x401c0f
mov eax, dword [esi + 8]
sub eax, ecx
xor ecx, ecx
cmp eax, dword [ebp - 0x14]
sete cl
mov dword [ebp - 0x1c], ecx
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [edi]
cmp edi, ebx
je 0x401c3c
mov eax, dword [edi]
push dword [ebp - 0x1c]
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc