Function at 0x439baf
Capabilities:
Connect to http server
Create http request
Download and write a file
Get http content length
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 0x12c
mov eax, 0x5bd982
call fcn.0058f9b8
mov dword [ebp - 0x2c], ecx
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x30]
call fcn.0040141e
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x34]
call fcn.0040141e
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x50
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x70], 0x5e9bdc
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 2
call fcn.004397d4
pop ecx
cmp al, bl
jne 0x439c2e
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401019
xor al, al
jmp 0x43a028
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.004399f7
cmp al, bl
je 0x439c11
push ebx
push ebx
push ebx
push ebx
push str.Sonic_Roxio_Setup
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x439c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.___WinINet_could_not_be_initialized._error:__d
call fcn.004437b6
pop ecx
pop ecx
mov dword [ebp - 0x44], esi
push 0x638a60
lea eax, [ebp - 0x44]
push eax
call fcn.005902bc
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
pop edi
push edi
lea ecx, [ebp - 0x20]
push ecx
push 2
push eax
mov dword [ebp - 0x20], 0x4e20
call esi
push edi
lea eax, [ebp - 0x20]
push eax
push 8
push dword [ebp - 0x18]
call esi
push edi
lea eax, [ebp - 0x20]
push eax
push 7
push dword [ebp - 0x18]
call esi
push edi
lea eax, [ebp - 0x20]
push eax
push 5
push dword [ebp - 0x18]
call esi
push edi
lea eax, [ebp - 0x20]
push eax
push 6
push dword [ebp - 0x18]
call esi
push edi
lea eax, [ebp - 0x20]
push eax
push 3
push dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
call esi
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x439d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.___The_HTTP_session_could_not_be_opened._error:__d
call fcn.004437b6
pop ecx
pop ecx
mov dword [ebp - 0x3c], esi
push 0x638a60
lea eax, [ebp - 0x3c]
jmp 0x439c7f
push ebx
push 0x84000000
lea ecx, [ebp - 0x70]
push ecx
push ebx
push ebx
push dword [ebp - 0x34]
push 0x5e9ae8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x439d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.___The_HTTP_handle_could_not_be_created._error:__d
call fcn.004437b6
pop ecx
pop ecx
mov dword [ebp - 0x5c], esi
push 0x638a60
lea eax, [ebp - 0x5c]
jmp 0x439c7f
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x439d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.___The_HTTP_request_failed._error:__d
call fcn.004437b6
pop ecx
pop ecx
mov dword [ebp - 0x4c], esi
push 0x638a60
lea eax, [ebp - 0x4c]
jmp 0x439c7f
push 0x5e9a28
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00592bb5
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x439dd5
push esi
push dword [ebp + 0xc]
push str.___Could_not_open_the_file:__s_for_writing._error:__d
call fcn.004437b6
add esp, 0xc
mov dword [ebp - 0x68], esi
push 0x638a60
lea eax, [ebp - 0x68]
jmp 0x439c7f
push ebx
mov dword [ebp - 0x54], edi
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x54]
push eax
lea esi, [edi + 4]
push esi
push 0x20000005
push dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x439f17
mov eax, dword [esi]
push 0x32
pop ecx
xor edx, edx
div ecx
mov dword [ebp - 0x64], eax
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea esi, [edi + 8]
mov ecx, edi
mov dword [ebp + 8], eax
mov dword [esi], ebx
call fcn.00439804
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x2c], 0x32
push esi
jae 0x439eba
push dword [ebp - 0x64]
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x439e67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.___An_error_occured_while_reading_a_file_from_the_internet._error:__d
call fcn.004437b6
pop ecx
pop ecx
mov dword [ebp - 0x40], esi
push 0x638a60
lea eax, [ebp - 0x40]
jmp 0x439c7f
mov ecx, edi
call fcn.00439804
push dword [ebp - 0x1c]
push dword [esi]
push 1
push dword [ebp + 8]
call fcn.00594855
mov ecx, dword [esi]
add esp, 0x10
cmp eax, ecx
je 0x439eaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp + 0xc]
push str.___An_error_occured_while_writing_to_file:__s_with_error:__d
call fcn.004437b6
add esp, 0xc
mov dword [ebp - 0x48], esi
push 0x638a60
lea eax, [ebp - 0x48]
jmp 0x439c7f
add dword [ebp - 0x28], ecx
inc dword [ebp - 0x2c]
jmp 0x439e24
mov eax, dword [edi + 4]
sub eax, dword [ebp - 0x28]
push eax
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, edi
call fcn.00439804
push dword [ebp - 0x1c]
push dword [esi]
push 1
push dword [ebp + 8]
call fcn.00594855
add esp, 0x10
cmp eax, dword [esi]
je 0x439fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp + 0xc]
push str.___An_error_occured_while_writing_to_file:__s_with_error:__d
call fcn.004437b6
add esp, 0xc
mov dword [ebp - 0x50], esi
push 0x638a60
lea eax, [ebp - 0x50]
jmp 0x439c7f
push ebx
push str.___Could_not_obtain_the_size_of_the_content_to_be_downloaded._The_file_will_download_._error:__d
call fcn.004437b6
pop ecx
pop ecx
lea esi, [edi + 8]
push esi
push 0x32
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x439f6c
push dword [ebp - 0x1c]
call fcn.005929b2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.___An_error_occured_while_reading_a_file_from_the_internet._error:__d
call fcn.004437b6
pop ecx
pop ecx
mov dword [ebp - 0x58], esi
push 0x638a60
lea eax, [ebp - 0x58]
jmp 0x439c7f
mov eax, dword [esi]
cmp eax, ebx
je 0x439fc0
push dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x138]
push 1
push eax
call fcn.00594855
add esp, 0x10
cmp eax, dword [esi]
je 0x439f24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp + 0xc]
push str.___An_error_occured_while_writing_to_file:__s_with_error:__d
call fcn.004437b6
add esp, 0xc
mov dword [ebp - 0x60], esi
push 0x638a60
lea eax, [ebp - 0x60]
jmp 0x439c7f
cmp dword [ebp - 0x18], ebx
je 0x439fce
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x38], ebx
je 0x439fdc
push dword [ebp - 0x38]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x24], ebx
je 0x439fea
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x43a001
push dword [ebp - 0x1c]
call fcn.00594697
push dword [ebp - 0x1c]
call fcn.005929b2
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
je 0x43a00f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401019
mov al, byte [ebp - 0x11]
call fcn.0058fa5d
ret 8