Function at 0x4010e0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea edi, [ebp - 0x34]
mov ecx, 0xd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], str.Mozilla_4.0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jne 0x401127
xor eax, eax
jmp 0x40133d
mov esi, esp
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp esi, esp
call fcn.004041c0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40116d
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004041c0
push eax
push str.InternetOpen_failed:_0x_lx
call fcn.0040104b
add esp, 8
jmp 0x40133a
mov esi, esp
push 0
push 0
push 3
push 0
push 0
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp esi, esp
call fcn.004041c0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4011be
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004041c0
push eax
push str.InternetOpenUrl_failed:_0x_lx
call fcn.0040104b
add esp, 8
jmp 0x401327
mov esi, esp
push 0
push 0x800000
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
push 0x42ccec
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp esi, esp
call fcn.004041c0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401212
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004041c0
push eax
push str.HttpOpenRequest_failed:_0x_lx
call fcn.0040104b
add esp, 8
jmp 0x401314
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 4
mov esi, esp
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x1f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
cmp esi, esp
call fcn.004041c0
mov eax, dword [ebp - 0x24]
or eax, 0x3180
mov dword [ebp - 0x24], eax
mov esi, esp
push 4
lea ecx, [ebp - 0x24]
push ecx
push 0x1f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp esi, esp
call fcn.004041c0
mov esi, esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp esi, esp
call fcn.004041c0
test eax, eax
jne 0x4012a1
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004041c0
push eax
push str.HttpSendRequest_failed:_0x_lx
call fcn.0040104b
add esp, 8
jmp 0x401301
push str.downloading_ca_certificate
call fcn.0040104b
add esp, 4
mov esi, esp
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp esi, esp
call fcn.004041c0
test eax, eax
jne 0x4012f0
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004041c0
push eax
push str.InternetReadFile_failed:_0x_lx
call fcn.0040104b
add esp, 8
jmp 0x401301
mov edx, dword [ebp - 0x18]
push edx
push str.donwload_ok.__d
call fcn.0040104b
add esp, 8
mov esi, esp
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.004041c0
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.004041c0
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp esi, esp
call fcn.004041c0
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x401360]
call fcn.004041e3
pop eax
pop edx
pop edi
pop esi
add esp, 0x34
cmp ebp, esp
call fcn.004041c0
mov esp, ebp
pop ebp
ret