Function at 0x4401cf
Capabilities:
Download and write a file
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 0x94
mov eax, 0x44526c
call fcn.0041cecd
mov esi, ecx
mov edi, edx
lea eax, [edi + 0xac]
cmp dword [eax + 0x18], 8
jb 0x4401f3
mov eax, dword [eax + 4]
jmp 0x4401f6
add eax, 4
xor ebx, ebx
push ebx
push 0x8401f000
push ebx
push ebx
push ebx
push eax
push dword [edi + 0x124]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x44026d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x48]
call fcn.0043139f
push eax
lea eax, [ebp - 0x68]
push str.Error_creating_request_
push eax
mov dword [ebp - 4], ebx
call fcn.004032fc
add esp, 0xc
add edi, 0xd8
push edi
mov byte [ebp - 4], 1
call fcn.00401918
push ebx
push 1
lea esi, [ebp - 0x68]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.0040115a
xor eax, eax
xor edx, edx
call fcn.0041cfa5
ret 0x14
cmp dword [esi + 0x18], 0x10
mov edx, dword [esi + 0x14]
jb 0x44027b
mov esi, dword [esi + 4]
jmp 0x44027e
add esi, 4
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x44028f
mov eax, dword [eax + 4]
jmp 0x440292
add eax, 4
push edx
push esi
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4402fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x68]
call fcn.0043139f
push eax
lea eax, [ebp - 0x48]
push str.Error_sending_request_
push eax
mov dword [ebp - 4], 2
call fcn.004032fc
add esp, 0xc
add edi, 0xd8
push edi
mov byte [ebp - 4], 3
call fcn.00401918
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x68]
call fcn.0040115a
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x440261
push 0x4000
call fcn.0041a4fc
pop ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0x22
push dword [ebp + 8]
mov esi, 0x2000
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x44035d
push dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push dword [ebp + 0xc]
call fcn.00407002
lea ecx, [edi + 0x128]
push ecx
mov dword [ebp - 4], 4
call fcn.00401918
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.0040115a
mov esi, 0x2000
push dword [ebp + 0xc]
call fcn.0041b820
pop ecx
cmp byte [ebp + 0x18], bl
je 0x44040a
push esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x4c], ebx
call fcn.0041a4fc
pop ecx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push 0x16
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push dword [ebp - 0x24]
lea eax, [ebp - 0x48]
push dword [ebp + 0xc]
push eax
call fcn.00431ac5
add esp, 0xc
push edi
mov dword [ebp - 4], 5
call fcn.00401918
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.0040115a
push dword [ebp + 0xc]
call fcn.0041b820
mov eax, dword [edi + 0x11c]
pop ecx
cmp eax, ebx
je 0x440405
push ebx
push edi
call eax
pop ecx
pop ecx
test al, al
jne 0x440405
push str.User_abort__info_event_
add edi, 0xd8
push edi
call fcn.00401f7a
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
mov edx, ebx
jmp 0x440265
mov esi, 0x2000
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x440462
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x68]
call fcn.0043139f
push eax
lea eax, [ebp - 0x48]
push str.Error_getting_HTTP_status_
push eax
mov dword [ebp - 4], 6
call fcn.004032fc
add esp, 0xc
mov byte [ebp - 4], 7
jmp 0x4404a4
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xd0], eax
cmp byte [ebp + 0x18], bl
je 0x4404d1
push 0x64
xor edx, edx
pop ecx
div ecx
cmp eax, 2
je 0x4404d8
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x68]
call fcn.0043139f
push eax
lea eax, [ebp - 0x48]
push str.Error_HTTP_status
push eax
mov dword [ebp - 4], 8
call fcn.004032fc
add esp, 0xc
mov byte [ebp - 4], 9
add edi, 0xd8
push edi
call fcn.00401918
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x68]
call fcn.0040115a
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
jmp 0x4403f3
cmp eax, 0xce
jne 0x44047c
push esi
call fcn.0041a4fc
pop ecx
mov dword [ebp + 0xc], eax
cmp byte [edi + 0x111], bl
jne 0x440628
lea ecx, [ebp + 0x18]
push ecx
push esi
push eax
jmp 0x4405b4
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x440628
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], ebx
cmp dword [ebp + 0x14], 0xffffffff
je 0x44058a
push ebx
lea ecx, [ebp - 0x28]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp + 0x18]
je 0x44052e
cmp dword [ebp - 0x28], eax
je 0x440596
sub dword [ebp - 0x18], eax
sbb dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xa0]
call fcn.0043139f
push eax
lea eax, [ebp - 0x84]
push str.Error_writing_file_
push eax
mov dword [ebp - 4], 0xc
call fcn.004032fc
add esp, 0xc
add edi, 0xd8
push edi
mov byte [ebp - 4], 0xd
call fcn.00401918
push ebx
push 1
lea esi, [ebp - 0x84]
call fcn.0040115a
lea esi, [ebp - 0xa0]
jmp 0x44060d
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
call fcn.0040794b
mov eax, dword [edi + 0x120]
cmp eax, ebx
je 0x4405ac
push dword [ebp + 0x18]
push edi
call eax
pop ecx
pop ecx
test al, al
je 0x440617
lea eax, [ebp + 0x18]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp + 0x18], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4404f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x68]
call fcn.0043139f
push eax
lea eax, [ebp - 0x48]
push str.Error_receiving_data_
push eax
mov dword [ebp - 4], 0xa
call fcn.004032fc
add esp, 0xc
add edi, 0xd8
push edi
mov byte [ebp - 4], 0xb
call fcn.00401918
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.0040115a
lea esi, [ebp - 0x68]
push ebx
push 1
call fcn.0040115a
jmp 0x440628
push str.User_abort__processing_event_
add edi, 0xd8
push edi
call fcn.00401f7a
push dword [ebp + 0xc]
call fcn.0041b820
pop ecx
jmp 0x4404c6