Function at 0x4adbf0
Capabilities:
Download and write a file
Get http content length
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 0x4f6cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5470b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
push edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebx + 0xc]
push esi
mov dword [esi], edi
mov ecx, dword [ebx + 4]
push 0x20000005
push ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4adc56
lea eax, [edi + 1]
jmp 0x4adc5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
push ecx
mov ecx, dword [esi]
mov edx, esp
mov dword [ebp - 0x24], esp
push ecx
push eax
mov eax, dword [ebp + 8]
push eax
push str.CHttpClient::DownloadToFile__s_:_GetSize_returned__d:__d
push edx
call fcn.00475230
add esp, 0x14
call fcn.004abeb0
mov eax, dword [ebp + 8]
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00425486
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00475c80
add esp, 8
cmp eax, edi
jne 0x4adcd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp - 0x24], esp
push eax
mov eax, dword [ebp + 8]
push eax
push str._CHttpClient::DownloadToFile__s_:_failed_creating_file__LE_d
push edx
call fcn.00475230
add esp, 0x10
call fcn.004abeb0
jmp 0x4ade2f
push 0x4000
call fcn.004d21c4
mov edx, dword [ebx + 4]
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
push 0x4000
mov esi, eax
push esi
push edx
mov dword [ebx + 8], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x4add49
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4add6d
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jne 0x4adddd
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
add ecx, eax
push 0x4000
mov dword [ebx + 8], ecx
mov eax, dword [ebx + 4]
push esi
push eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4add02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push edx
push str._CHttpClient::DownloadToFile__s_:_InternetReadFile_failed__LE_d
push ecx
call fcn.00475230
add esp, 0x10
jmp 0x4addfb
push esi
call fcn.004d20e7
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push esi
push edx
push str.CHttpClient::DownloadToFile__s_:_done__dwContentLength_d
push ecx
call fcn.00475230
add esp, 0x10
call fcn.004abeb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4addc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x14]
push ecx
mov edx, esp
mov dword [ebp - 0x24], esp
push ebx
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
push str._CHttpClient::DownloadToFile__s_:_dwNumWrite__d____dwNumRead__d___offset_d
push edx
call fcn.00475230
add esp, 0x18
call fcn.004abeb0
push esi
call fcn.004d20e7
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00425486
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00478330
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ade58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4