Function at 0x415da0
Capabilities:
Check http status code
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x1038
call fcn.00424c00
mov eax, dword [0x4541fc]
xor eax, esp
mov dword [esp + 0x1034], eax
mov eax, dword [esp + 0x1040]
push ebx
xor ebx, ebx
push esi
mov esi, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], ebx
cmp eax, ebx
je 0x415de2
cmp eax, 0xffffffff
je 0x415de2
mov dword [esp + 0xc], 1
cmp dword [esp + 0x1044], ebx
je 0x415e31
cmp dword [esp + 0xc], ebx
je 0x415df5
cmp ecx, ebx
jne 0x415e31
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1034]
xor ecx, esp
call fcn.00418dd5
add esp, 0x1038
ret
mov eax, dword [esp + 0x104c]
push edi
push ebx
push ebx
push ebx
push ebx
cmp dword [eax - 0xc], ebx
je 0x415e51
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x415e62
push str.CHM_MSDN
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x14], eax
mov edi, eax
cmp edi, ebx
jne 0x415ea3
mov eax, dword [esp + 0x1050]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1034]
xor ecx, esp
call fcn.00418dd5
add esp, 0x1038
ret
push ebp
push ebx
push SysReAllocStringLen
push ebx
push ebx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebp, eax
cmp ebp, ebx
jne 0x415ed6
mov eax, dword [esp + 0x1054]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4160dd
xor eax, eax
push ebx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
lea eax, [esp + 0x34]
push eax
push 0x13
xor ecx, ecx
push ebp
mov word [esp + 0x40], cx
mov dword [esp + 0x34], 0x14
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4160ba
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041ae21
add esp, 4
cmp eax, 0xc8
je 0x415f49
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
push edi
call esi
lea eax, [esp + 0x1054]
call fcn.0040abc0
jmp 0x4160e9
mov edi, 1
cmp dword [esp + 0x104c], ebx
je 0x41608a
push 0x1000
lea edx, [esp + 0x45]
push ebx
push edx
mov dword [esp + 0x1c], ebx
xor esi, esi
xor edi, edi
mov byte [esp + 0x4c], bl
call fcn.0041a740
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x48]
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41606d
jmp 0x415fa0
mov eax, dword [esp + 0x10]
cmp eax, ebx
jbe 0x41605c
cmp dword [esp + 0x14], ebx
jne 0x41600c
cmp edi, ebx
jne 0x415fd3
push 0x1001
call fcn.0041932a
push 0x1001
mov edi, eax
push ebx
push edi
call fcn.0041a740
add esp, 0x10
jmp 0x415ff4
lea edx, [esi + 0x1001]
push edx
push edi
call fcn.0041ac06
mov edi, eax
push 0x1001
lea eax, [edi + esi]
push ebx
push eax
call fcn.0041a740
add esp, 0x14
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [edi + esi]
push eax
call fcn.0041b0a0
add esp, 0xc
jmp 0x416027
push ebx
lea ecx, [esp + 0x2c]
push ecx
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [esp + 0x10]
push 0x1001
lea ecx, [esp + 0x44]
push ebx
push ecx
call fcn.0041a740
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x1000
lea eax, [esp + 0x48]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x415fa0
cmp esi, ebx
ja 0x41607b
cmp edi, ebx
je 0x41606d
push edi
call fcn.0041924d
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x416077
mov dword [eax], ebx
xor edi, edi
jmp 0x41608a
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x416085
mov dword [eax], esi
mov edi, 1
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea eax, [esp + 0x1054]
call fcn.0040abc0
cmp dword [esp + 0x104c], ebx
je 0x4160b3
mov eax, edi
jmp 0x4160eb
mov eax, 1
jmp 0x4160eb
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call esi
push edi
call esi
mov eax, dword [esp + 0x1054]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4160e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1044]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418dd5
add esp, 0x1038
ret