Function at 0x67d626
Capabilities:
Copy file
Receive http response
Write file on windows

Disassembly:
push 0x1a8
mov eax, 0x6a184b
call fcn.0049be59
mov ebx, ecx
xor eax, eax
mov esi, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], esi
mov edi, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], eax
call fcn.0067cdf0
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x67d68d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
push edi
push str.InternetGetRequestEx_:_Error_occured_while_creating_the_file______d
call fcn.006778de
pop ecx
pop ecx
mov ecx, edi
call fcn.0067ef87
push 0
push edi
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
jmp 0x67d8c0
cmp dword [ebx + 0x4c], esi
jbe 0x67d8aa
cmp dword [ebx], edi
je 0x67d6f5
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
test esi, esi
je 0x67d6ae
lea eax, [esi + 1]
mov dword [ebp - 0x3c], eax
push 0x64
pop edx
lea ecx, [ebp - 0x2c]
add esi, 0x7a120
call fcn.0067ef65
push esi
push dword [ebp - 0x3c]
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, ebx
push dword [ebp - 0x2c]
call fcn.0067cfd0
test eax, eax
jne 0x67d861
mov esi, dword [ebp - 0x34]
cmp dword [ebx + 8], 0xc8
je 0x67d70b
cmp dword [ebx + 8], 0xce
jne 0x67d885
cmp dword [ebx + 0x74], edi
jne 0x67d71b
push str.download_progress_window_handle_is_null
call fcn.00677869
pop ecx
and dword [ebp - 0x30], edi
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x67d9e5
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x67d826
inc eax
push eax
push 2
call fcn.0050e2b0
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], eax
push ecx
push dword [ebp - 0x30]
push eax
push dword [ebx + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x67d9c9
mov eax, dword [ebp - 0x38]
add esi, eax
mov dword [ebp - 0x34], esi
test eax, eax
je 0x67d814
cmp dword [ebx + 0x24], 2
jne 0x67d7a7
push dword [ebp - 0x28]
call fcn.004522e3
pop ecx
push eax
push dword [ebp - 0x28]
lea ecx, [ebx + 0xc]
call fcn.0045970a
push 0
push 0x750660
lea ecx, [ebx + 0xc]
call fcn.0045970a
jmp 0x67d81d
push 0
lea ecx, [ebp - 0x4c]
push ecx
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x67d9a4
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x67d81d
mov dword [ebp - 0x44], esi
fild dword [ebp - 0x44]
test esi, esi
jns 0x67d7dc
fadd qword [0x774800]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fmul qword [0x7747f0]
mov eax, dword [ebx + 0x4c]
fild dword [ebx + 0x4c]
test eax, eax
jns 0x67d7f8
fadd qword [0x774800]
fstp qword [ebp - 0x48]
fdiv qword [ebp - 0x48]
call fcn.0049c0b0
push eax
push 0
push dword [ebx + 0x78]
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x67d81d
push ecx
lea ecx, [ebx + 0xc]
call fcn.0045b262
cmp dword [ebp - 0x38], edi
jne 0x67d71b
cmp dword [ebx], edi
je 0x67d856
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x258
push str.HttpHandler::HttpReadResponseData
push str._s::_Sleep_for__d_milliseconds
call fcn.006778de
add esp, 0xc
push 0x258
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, dword [ebx + 0x4c]
jb 0x67d696
jmp 0x67d8a7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
push edi
call fcn.0067e75e
push 2
push edi
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
mov eax, dword [ebp - 0x24]
jmp 0x67d8b0
push dword [ebx + 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 edi
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x24], 4
jne 0x67da4d
push 0
push dword [ebx + 0x3c]
push dword [ebx + 0x40]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x67d9fc
call esi
mov edi, eax
push 0
push edi
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
push edi
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 [ebx + 0x40]
lea ecx, [ebp - 0x1b4]
call fcn.0045b07a
and dword [ebp - 4], 0
lea ecx, [ebp - 0xfc]
sub esp, 0xc
push dword [ebx + 0x3c]
call fcn.0045af6a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x67d975
cmp dword [ebp - 0xac], 0
je 0x67d966
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0xfc]
call fcn.0045b114
lea ecx, [ebp - 0xfc]
call fcn.00457e8b
mov eax, dword [ebp - 0x158]
test eax, eax
je 0x67d975
lea ecx, [ebp - 0x1b4]
call fcn.0045b005
cmp dword [ebp - 0xac], 0
je 0x67d989
lea ecx, [ebp - 0xfc]
call fcn.00457e8b
lea ecx, [ebp - 0xfc]
call fcn.00457cf4
lea ecx, [ebp - 0x1b4]
call fcn.0045af1e
jmp 0x67da66
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
push edi
push str.InternetGetRequestByBitrate_:_Error_occured_in_WriteFile______d
call fcn.00677763
pop ecx
pop ecx
mov ecx, edi
call fcn.0067ef87
push 0
jmp 0x67d873
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
push edi
push str.InternetGetRequestByBitrate_:_Error_occured_in_WinHttpReadData______d
call fcn.00677763
pop ecx
pop ecx
jmp 0x67d86b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
push edi
push str.InternetGetRequestByBitrate_:_Error_occured_in_WinHttpQueryDataAvailable______d
call fcn.006778de
jmp 0x67d9de
push dword [ebx + 0x28]
lea ecx, [ebp - 0x40]
call fcn.004514db
push 0
push str.cloudfront
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 2
call fcn.004513db
test eax, eax
je 0x67da37
push dword [ebx + 0x3c]
push dword [ebx + 0x28]
push dword [ebx + 0x34]
push str.InternetGetRequestEx_:_Successfully_downloaded_the_file__s_from_the_server__s_to_the_destination_file__s
call fcn.006778de
add esp, 0x10
push dword [ebx + 0x40]
call fcn.005120b1
pop ecx
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.0044ec01
jmp 0x67da66
mov ecx, dword [ebx + 0x40]
call fcn.0067eee7
mov edi, eax
push 0
push edi
call fcn.0066c2c9
mov ecx, eax
call fcn.0066c1d2
mov eax, edi
call fcn.0049be03
ret