Function at 0x67d1ce
Capabilities:
Copy file
Receive http response

Disassembly:
push 0x250
mov eax, 0x6a1805
call fcn.0049be59
mov edi, ecx
xor ebx, ebx
push ecx
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
call fcn.00457f4a
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0067cdf0
mov esi, eax
test esi, esi
jne 0x67d22e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.InternetGetRequestEx_:_Error_occured_while_creating_the_file______d
call fcn.006778de
pop ecx
pop ecx
mov ecx, ebx
call fcn.0067ef87
push esi
jmp 0x67d4c3
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push ecx
push dword [edi + 0x40]
lea ecx, [ebp - 0xf4]
call fcn.00457f00
cmp dword [ebp - 0xa4], 0
je 0x67d385
push str.open_success
call fcn.006778de
pop ecx
cmp dword [edi + 0x4c], 0
jbe 0x67d4d0
cmp dword [edi], 0
je 0x67d2ce
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x67d28a
lea ecx, [eax + 1]
mov dword [ebp - 0x38], ecx
push 0x64
pop edx
lea ecx, [ebp - 0x2c]
lea esi, [eax + 0x7a120]
call fcn.0067ef65
push esi
push dword [ebp - 0x38]
push str.Range:_bytes_u__u
push dword [ebp - 0x2c]
call fcn.0045aeee
push dword [ebp - 0x2c]
push str.InternetGetRequestByBitrate:_Content_Range_Header_message:__s
call fcn.006778de
add esp, 0x18
mov ecx, edi
push dword [ebp - 0x2c]
call fcn.0067cfd0
test eax, eax
jne 0x67d463
cmp dword [edi + 8], 0xc8
je 0x67d2e4
cmp dword [edi + 8], 0xce
jne 0x67d46d
cmp dword [edi + 0x74], 0
jne 0x67d2f5
push str.download_progress_window_handle_is_null
call fcn.00677869
pop ecx
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x67d4a6
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x67d41c
inc eax
push eax
push 2
call fcn.0050e2b0
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], eax
push ecx
push dword [ebp - 0x30]
push eax
push dword [edi + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x67d491
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0
mov dword [ebp - 0x24], esi
je 0x67d409
cmp dword [edi + 0x24], 2
push dword [ebp - 0x28]
jne 0x67d3ac
call fcn.004522e3
pop ecx
push eax
push dword [ebp - 0x28]
lea ecx, [edi + 0xc]
call fcn.0045970a
push 0
push 0x750660
lea ecx, [edi + 0xc]
call fcn.0045970a
jmp 0x67d3b7
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xe8], 6
je 0x67d264
push str.open_failed
call fcn.006778de
pop ecx
jmp 0x67d4d0
lea ecx, [ebp - 0xf4]
call fcn.00458708
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x67d412
mov dword [ebp - 0x40], esi
fild dword [ebp - 0x40]
test esi, esi
jns 0x67d3d1
fadd qword [0x774800]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fmul qword [0x7747f0]
mov eax, dword [edi + 0x4c]
fild dword [edi + 0x4c]
test eax, eax
jns 0x67d3ed
fadd qword [0x774800]
fstp qword [ebp - 0x44]
fdiv qword [ebp - 0x44]
call fcn.0049c0b0
push eax
push 0
push dword [edi + 0x78]
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x67d412
push ecx
lea ecx, [edi + 0xc]
call fcn.0045b262
cmp dword [ebp - 0x34], 0
jne 0x67d2f5
lea ecx, [ebp - 0xf4]
call fcn.00457e8b
cmp dword [edi], 0
je 0x67d455
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, 0x258
push esi
push str.HttpHandler::HttpReadResponseDataStdFunction
push str._s::_Sleep_for__d_milliseconds
call fcn.006778de
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edi + 0x4c]
jb 0x67d26e
jmp 0x67d4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x67d4bb
push dword [edi + 8]
push str.InternetGetRequestByBitrate_:_Failed_with_the_http_status_code__d
call fcn.006778de
pop ecx
pop ecx
push 1
push 0
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
push 0xd
pop ebx
jmp 0x67d4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.InternetGetRequestByBitrate_:_Error_occured_in_WinHttpReadData______d
call fcn.00677763
jmp 0x67d4b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.InternetGetRequestByBitrate_:_Error_occured_in_WinHttpQueryDataAvailable______d
call fcn.006778de
pop ecx
pop ecx
push ebx
call fcn.0067e75e
push 2
push ebx
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
cmp dword [edi + 0x24], 4
jne 0x67d5fa
push 0
push dword [edi + 0x3c]
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x67d5b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0
push ebx
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
push ebx
push str.InternetGetRequestEx_:_could_nt_copy_from_.tmp_file__errorcode______d
call fcn.006778de
push str.copyfile_failed:_so_trying_std_c_way
call fcn.006778de
push dword [edi + 0x40]
lea ecx, [ebp - 0x25c]
call fcn.0045b07a
sub esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a4]
push dword [edi + 0x3c]
call fcn.0045af6a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x200]
test eax, eax
je 0x67d589
cmp dword [ebp - 0x154], 0
je 0x67d57a
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.0045b114
lea ecx, [ebp - 0x1a4]
call fcn.00457e8b
mov eax, dword [ebp - 0x200]
test eax, eax
je 0x67d589
lea ecx, [ebp - 0x25c]
call fcn.0045b005
cmp dword [ebp - 0x154], 0
je 0x67d59d
lea ecx, [ebp - 0x1a4]
call fcn.00457e8b
lea ecx, [ebp - 0x1a4]
call fcn.00457cf4
lea ecx, [ebp - 0x25c]
call fcn.0045af1e
jmp 0x67d613
push dword [edi + 0x28]
lea ecx, [ebp - 0x3c]
call fcn.004514db
push 0
push str.cloudfront
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.004513db
test eax, eax
je 0x67d5ed
push dword [edi + 0x3c]
push dword [edi + 0x28]
push dword [edi + 0x34]
push str.InternetGetRequestEx_:_Successfully_downloaded_the_file__s_from_the_server__s_to_the_destination_file__s
call fcn.006778de
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
jmp 0x67d613
mov ecx, dword [edi + 0x40]
call fcn.0067eee7
mov ebx, eax
push 0
push ebx
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
lea ecx, [ebp - 0xf4]
call fcn.00457cf4
mov eax, ebx
call fcn.0049be03
ret