Function at 0x10080b20
Capabilities:
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:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095007
mov eax, dword fs:[0]
push eax
sub esp, 0x734
mov eax, dword [0x100ba00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x72c], edi
mov esi, ecx
lea ecx, [ebp - 0x71c]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_void_]
lea ecx, [ebp - 0x71c]
mov dword [ebp - 4], 0
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Empty_void_]
xorps xmm0, xmm0
mov dword [ebp - 0x73c], 0
lea eax, [ebp - 0x734]
movq qword [ebp - 0x734], xmm0
mov dword [ebp - 0x738], eax
push 0
push 0
push 0
push 0
push 0x100a859c
mov byte [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
jne 0x10080bbc
mov ecx, edi
jmp 0x10080df5
mov edi, dword [sym.imp.WININET.dll_InternetOpenUrlW]
push 1
push 0x10000002
push 0
push 0
push esi
push ebx
call edi
mov dword [ebp - 0x720], eax
test eax, eax
jne 0x10080bf9
push 1
push 0x20000000
push eax
push eax
push esi
push ebx
call edi
mov ebx, eax
mov dword [ebp - 0x720], ebx
test ebx, ebx
jne 0x10080bfb
jmp 0x10080def
mov ebx, eax
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x1009d808]
add esp, 0xc
mov dword [ebp - 0x410], eax
mov eax, dword [0x1009d80c]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x408]
push 0x1f8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x718]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x100
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
cmp word [ebp - 0x210], 0
je 0x10080d10
lea edx, [ebp - 0x210]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10080c90
sub edx, ecx
mov ecx, str._:____
sar edx, 1
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10080ca7
sub ecx, esi
xor edi, edi
sar ecx, 1
test edx, edx
jle 0x10080cf4
lea ebx, [edi + 0x5f]
nop
xor eax, eax
test ecx, ecx
jle 0x10080ce9
movzx esi, word [ebp + edi*2 - 0x210]
nop
cmp si, word [eax*2 + str._:____]
je 0x10080ce1
inc eax
cmp eax, ecx
jl 0x10080cd0
jmp 0x10080ce9
mov word [ebp + edi*2 - 0x210], bx
inc edi
cmp edi, edx
jl 0x10080cc0
mov ebx, dword [ebp - 0x720]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp word [ebp - 0x410], 0x2e
lea ecx, [ebp - 0x410]
lea eax, [ebp - 0x40e]
mov edx, 0x104
cmovne eax, ecx
lea ecx, [ebp - 0x718]
push 0
push eax
push 0
call fcn.100809b0
add esp, 0xc
lea eax, [ebp - 0x718]
lea ecx, [ebp - 0x71c]
push eax
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__]
push 0x100
lea eax, [ebp - 0x510]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x724]
push 0x1009d894
push dword [ebp - 0x71c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x10080e02
cmp dword [ebp - 0x724], eax
je 0x10080e02
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
nop dword [eax + eax]
lea eax, [ebp - 0x728]
push eax
push 0x100
lea eax, [ebp - 0x510]
push eax
push ebx
call esi
push dword [ebp - 0x724]
lea eax, [ebp - 0x510]
push 1
push dword [ebp - 0x728]
push eax
call edi
add esp, 0x10
cmp dword [ebp - 0x728], 0
jne 0x10080da0
push dword [ebp - 0x724]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x72c]
lea eax, [ebp - 0x71c]
push eax
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_class_CHncStringW_const__]
lea ecx, [ebp - 0x73c]
call fcn.10002d70
lea ecx, [ebp - 0x71c]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008cdc9
mov esp, ebp
pop ebp
ret