Function at 0x46ff50
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c976d
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0xa8], edx
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0x80], edx
mov edx, dword [ebp + 0x3c]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x513fec]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x78], edx
mov edx, dword [eax + 0xc]
mov ecx, 0x513fec
mov dword [ebp - 0xa0], ebx
call edx
add eax, 0x10
mov dword [ebp - 0xb4], eax
xor edi, edi
lea ecx, [ebp - 0xfc]
mov dword [ebp - 4], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x88], edi
call fcn.0046d5a0
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 1
cmp eax, dword [ebp - 0x78]
je 0x470048
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0xfc]
call fcn.0046d060
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0xfc]
call fcn.0046d2e0
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0xb0]
push edx
mov edx, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xa8]
push ecx
mov ecx, dword [ebp - 0xa4]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ebx
push eax
push ecx
mov ecx, esi
call fcn.00466c50
push str._________Inside_ResumeGetRequestByBitrate_Method___________n
call fcn.00423960
mov edx, dword [ebp + 0x14]
push edx
or eax, 0xffffffff
push ebx
push str.ResumeGetRequestByBitrate_:_DesktopCentral_Server__Port_____S_:__d__n
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xc4], edi
call fcn.00423db0
mov eax, dword [ebp - 0x80]
add esp, 0x10
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401e50
mov eax, dword [ebp - 0x6c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x64], esp
mov ebx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00404fb0
lea ecx, [ebp - 0x5c]
add esp, 4
add eax, 0x10
push ecx
mov dword [ebx], eax
call fcn.00466100
add esp, 8
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.00404900
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470131
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x6c]
cmp dword [eax - 4], 1
jle 0x470149
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00402490
mov eax, dword [ebp - 0x6c]
push eax
push str.ResumeGetRequestByBitrate_:_URL_to_Get_____S__n
call fcn.00423960
mov edx, dword [ebp - 0x78]
add esp, 8
push edx
mov ecx, esi
call fcn.0046dde0
mov ebx, eax
mov dword [ebp - 0x60], ebx
cmp ebx, edi
je 0x470175
cmp dword [esi + 0x7f], 1
jne 0x470b4c
cmp dword [0x515e10], edi
je 0x4701f4
mov ecx, dword [0x515e08]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00407450
mov dword [ebp - 0x5c], eax
mov eax, dword [eax]
cmp dword [eax - 4], 1
mov byte [ebp - 4], 4
jle 0x4701a7
mov edx, dword [eax - 0xc]
mov ecx, dword [ebp - 0x5c]
push edx
call fcn.00402490
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
push ecx
push eax
call fcn.0049200f
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x64]
sete byte [ebp - 0x65]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4701e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x65], 0
jne 0x4701f4
mov byte [esi + 0x9f], 1
jmp 0x4701fb
mov byte [esi + 0x9f], 0
movzx ecx, byte [esi + 0x9f]
push ecx
push str.isdownloadServerRequest__d_n
call fcn.00423db0
add esp, 8
cmp byte [esi + 0x9f], 0
je 0x47046e
push 9
push str.File_Name
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x58], 0
call fcn.00410630
mov edx, dword [ebp - 0xf8]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 5
mov dword [ebp - 0x64], edx
call fcn.00466090
mov edx, dword [ebp - 0x64]
cmp dword [eax], edx
mov byte [ebp - 4], 2
setne byte [ebp - 0x65]
cmp dword [ebp - 0x44], 0x10
jb 0x470279
mov eax, dword [ebp - 0x58]
push eax
call fcn.0048ed56
add esp, 4
cmp byte [ebp - 0x65], 0
je 0x470438
push 9
push str.File_Name
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x58], 0
call fcn.00410630
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 6
call fcn.0046d6d0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.004119f0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
jae 0x4702dd
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004012c0
cmp dword [ebp - 0x18], 0x10
jb 0x4702f8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0048ed56
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x44], 0x10
mov byte [ebp - 4], 0xa
jb 0x47031c
mov eax, dword [ebp - 0x58]
push eax
call fcn.0048ed56
add esp, 4
mov eax, dword [ebp - 0x5c]
push ecx
mov dword [ebp - 0x48], edi
add eax, 0xfffffff0
mov dword [ebp - 0x64], esp
mov edi, esp
push eax
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00410850
lea ecx, [ebp - 0x64]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.004663b0
add esp, 8
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
call fcn.0040fa30
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470380
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x5c]
mov edi, 1
cmp dword [eax - 4], edi
jle 0x47039c
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004014b0
mov eax, dword [ebp - 0x5c]
push eax
push str.file_path_is__s_n
call fcn.00423db0
mov eax, dword [ebp - 0x5c]
add esp, 8
cmp dword [eax - 4], edi
jle 0x4703c1
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x5c]
call fcn.004014b0
mov eax, dword [ebp - 0x5c]
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
call fcn.004012c0
mov eax, dword [esi + 0x26]
push ecx
sub eax, 0x10
mov dword [ebp - 0xb8], esp
mov edi, esp
push eax
mov byte [ebp - 4], 0xc
call fcn.00410850
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x7c]
mov ecx, esp
mov dword [ebp - 0x8c], esp
push eax
mov byte [ebp - 4], 0xd
call fcn.00401e50
lea ecx, [esi + 0x2a]
mov byte [ebp - 4], 0xa
call fcn.0046c970
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4704bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4704bc
mov edx, dword [ebp - 0x80]
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push edx
call fcn.00466910
mov eax, dword [esi + 0x26]
push ecx
sub eax, 0x10
mov dword [ebp - 0xb8], esp
mov edi, esp
push eax
mov byte [ebp - 4], 0xe
call fcn.00410850
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xf
jmp 0x4704a2
mov edx, dword [ebp - 0x80]
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push edx
call fcn.00466910
mov eax, dword [esi + 0x26]
push ecx
sub eax, 0x10
mov dword [ebp - 0xb8], esp
mov edi, esp
push eax
mov byte [ebp - 4], 0x10
call fcn.00410850
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x7c]
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
call fcn.00401e50
lea ecx, [esi + 0x2a]
mov byte [ebp - 4], 2
call fcn.0046c970
mov ecx, dword [esi + 0x5e]
mov edx, dword [esi + 0x62]
push 0x190
push 1
mov dword [esi + 0x97], ecx
mov dword [esi + 0x9b], edx
mov dword [ebp - 0x5c], ecx
call fcn.00491e51
mov edi, dword [0x513cd0]
imul edi, edi, 0x1f4
push edi
push str.ResumeGetRequestByBitrate:_Block_of_bytes_to_read:__lu_n
mov dword [ebp - 0x64], edi
call fcn.00423960
add esp, 0x10
cmp dword [esi + 0x7f], 1
jne 0x47056b
push str.ResumeGetRequestEx:_Filesize_contains_more_than_4_GB__n
call fcn.00423db0
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp + 0x34]
add esp, 4
push ecx
mov ecx, dword [ebp - 0x94]
lea edx, [ebp - 0xd0]
push edx
mov edx, dword [ebp - 0x7c]
push 1
push eax
mov eax, dword [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0xb0]
push edx
mov edx, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xa8]
push ecx
mov ecx, dword [ebp - 0xa4]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0x74]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.0046e540
mov ebx, eax
jmp 0x470afa
mov edi, dword [ebp - 0x5c]
cmp edi, dword [esi + 0x93]
jae 0x470afd
jmp 0x470583
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x34]
mov dx, word [ebp - 0x32]
mov ax, word [ebp - 0x30]
mov word [ebp - 0x90], cx
movzx ecx, word [ebp - 0x2e]
mov word [ebp - 0x8e], dx
mov word [ebp - 0x8c], ax
mov word [ebp - 0x8a], cx
test edi, edi
je 0x4705c2
mov dword [ebp - 0x5c], edi
jmp 0x4705c8
mov edx, dword [esi + 0x66]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x64]
lea ebx, [eax + edi - 1]
mov eax, dword [esi + 0x93]
cmp ebx, eax
jbe 0x4705db
mov ebx, eax
push 0x190
push 1
call fcn.00491e51
mov ecx, dword [ebp - 0x5c]
push ebx
push ecx
mov edi, eax
push str.Range:_bytes_lu__lu
push edi
call fcn.00463e60
push edi
push str.ResumeGetRequestByBitrate:_Content_Range_Header_message:__S_n
call fcn.00423960
mov ecx, dword [ebp + 0x34]
push 0
or eax, 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0xfc]
push edx
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x7c]
push 1
push ecx
mov ecx, dword [ebp - 0x80]
push edx
mov edx, dword [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0xa8]
push edx
mov edx, dword [ebp - 0xa4]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0xa0]
push edx
mov edx, dword [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], edi
call fcn.00469e40
mov ecx, dword [ebp - 0x14]
add esp, 0x60
mov ebx, eax
push ecx
push ebx
push str.ResumeGetRequestByBitrate:_GetInternetRequestHandle_function_return_code:__lu___d_n
mov dword [ebp - 0x60], ebx
call fcn.00423960
add esp, 0xc
test edi, edi
je 0x47069e
push edi
call fcn.0048efd8
add esp, 4
mov edi, dword [ebp - 0x14]
cmp ebx, 0x2ee2
je 0x470a51
cmp edi, 0xc8
je 0x4706c1
cmp edi, 0xce
jne 0x470a51
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x88]
lea edx, [ebp - 0x70]
push edx
push eax
mov dword [ebp - 0x70], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4707ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.ResumeGetRequestByBitrate_:_Error_occured_in_WinHttpQueryDataAvailable______lu__n
call fcn.00423ad0
push ebx
call fcn.00464180
add esp, 0xc
cmp ebx, 0x2ee2
je 0x47071c
cmp ebx, 0x2efe
je 0x47071c
cmp ebx, 0x2efd
jne 0x4707b7
cmp dword [ebp - 0x20], 0xffffffff
je 0x470744
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x470744
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_WinHttpCloseHandle_hRequest______d__n
call fcn.00423960
add esp, 8
cmp dword [ebp - 0x24], 0xffffffff
je 0x47076c
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x47076c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_WinHttpCloseHandle_hConnect______d__n
call fcn.00423960
add esp, 8
cmp dword [ebp - 0x28], 0xffffffff
je 0x470794
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
jne 0x470794
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_WinHttpCloseHandle_hSession______d__n
call fcn.00423960
add esp, 8
cmp dword [ebp - 0x84], 0
jne 0x4708d2
mov dword [ebp - 0x84], 1
jmp 0x4707b7
mov dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x470957
cmp eax, dword [esi + 0x56]
jbe 0x47080c
mov ecx, dword [esi + 0x87]
mov dword [esi + 0x56], eax
test ecx, ecx
je 0x4707ea
push ecx
call fcn.0048efd8
mov eax, dword [ebp - 0x70]
add esp, 4
mov dword [esi + 0x87], 0
push eax
push 1
call fcn.00491e51
mov ecx, dword [esi + 0x56]
push ecx
push str.Reallocating_buffer_to__lu_n
mov dword [esi + 0x87], eax
call fcn.00423db0
mov eax, dword [ebp - 0x70]
add esp, 0x10
lea edx, [edi + eax]
cmp edx, dword [esi + 0x56]
jbe 0x47084f
mov eax, dword [esi + 0x87]
push 1
push edi
push eax
lea ecx, [esi + 0x2a]
call fcn.00467b00
mov ecx, dword [esi + 0x56]
mov edx, dword [esi + 0x87]
push ecx
xor edi, edi
push edi
push edx
mov ebx, eax
mov dword [ebp - 0x88], edi
call fcn.00492ac0
add esp, 0xc
test ebx, ebx
jne 0x4708e8
mov eax, dword [ebp - 0x70]
mov edx, dword [esi + 0x87]
lea ecx, [ebp - 0xac]
push ecx
push eax
mov eax, dword [ebp - 0x20]
add edx, edi
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x470905
mov eax, dword [ebp - 0xac]
add dword [esi + 0x97], eax
mov ecx, dword [esi + 0x97]
mov edx, 0
adc dword [esi + 0x9b], edx
add edi, eax
mov eax, dword [esi + 0x93]
mov dword [ebp - 0x88], edi
mov edi, dword [esi + 0x9b]
cmp eax, ecx
jne 0x4708af
cmp edx, edi
je 0x470930
cmp edi, edx
ja 0x470942
jb 0x4708c1
cmp ecx, eax
ja 0x470942
cmp dword [ebp - 0xac], edx
je 0x470957
jmp 0x4706c1
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x98], 1
jmp 0x470957
push ebx
push str.ResumeGetRequestByBitrate_:__Error_in_WriteFile______lu__n
mov dword [ebp - 0x60], ebx
call fcn.00423ad0
add esp, 8
mov dword [ebp - 0x98], 1
jmp 0x47095a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.ResumeGetRequestByBitrate_:__Error_in_WinHttpReadData______lu__n
mov dword [ebp - 0x60], ebx
call fcn.00423ad0
push ebx
call fcn.00464180
add esp, 0xc
mov dword [ebp - 0x98], 1
jmp 0x47095a
push str.ResumeGetRequestByBitrate_:_Bytes_read_reached_the_contenlength_n
mov dword [ebp - 0x60], ebx
call fcn.00423db0
add esp, 4
jmp 0x47095a
push str.InternetGetRequestEx_:_File_downloading_more_than_the_content_length._File_download_deleted_and_download_failed.__n
mov dword [ebp - 0x60], ebx
call fcn.00423ad0
add esp, 4
mov ebx, 0xd
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x98], 0
mov edi, dword [esi + 0x97]
mov dword [ebp - 0x5c], edi
jne 0x470afd
push edi
push str.ResumeGetRequestByBitrate:_Bytes_Read:__lu_n
call fcn.00423960
add esp, 8
cmp dword [ebp - 0x84], 1
jne 0x470999
push str.ResumeGetRequestByBitrate_:_second_attempt_of_the_previous_request_n
call fcn.00423db0
add esp, 4
jmp 0x470a40
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x60], ebx
call fcn.00464100
mov edi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x3c]
push ecx
call edi
mov eax, dword [ebp - 0x90]
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ebp - 0x8e]
lea ecx, [eax + edx*4]
movzx eax, cx
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ebp - 0x8c]
lea ecx, [eax + edx*4]
movzx edx, word [ebp - 0x8a]
mov eax, dword [ebp - 0x34]
movzx ecx, cx
imul ecx, ecx, 0x3e8
add ecx, edx
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ebp - 0x32]
lea edx, [eax + edx*4]
movzx eax, dx
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ebp - 0x30]
lea edx, [eax + edx*4]
movzx eax, dx
movzx edx, word [ebp - 0x2e]
imul eax, eax, 0x3e8
add eax, edx
sub eax, ecx
cmp eax, 0x1c2
jae 0x470a2f
mov ecx, 0x258
sub ecx, eax
push ecx
jmp 0x470a31
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3c]
push eax
call edi
mov edi, dword [ebp - 0x5c]
cmp edi, dword [esi + 0x93]
jb 0x470580
jmp 0x470afd
cmp edi, 0x12e
je 0x470a65
cmp edi, 0x12d
jne 0x470afd
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x74]
push ecx
push edx
mov dword [ebp - 0x74], 0
call fcn.00464f10
mov ebx, dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00463bf0
add esp, 0x10
push eax
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x12
call fcn.0040fa30
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470abc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xd8]
cmp dword [eax - 4], 1
jle 0x470add
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.004014b0
mov eax, dword [ebp - 0xd8]
push eax
push str.Redirection_url_is__s_n
call fcn.00423db0
add esp, 8
test ebx, ebx
je 0x470af8
push ebx
call fcn.0048efd8
add esp, 4
mov ebx, edi
mov dword [ebp - 0x60], ebx
mov edx, dword [esi + 0x9b]
mov eax, dword [esi + 0x97]
push edx
push eax
push str.ResumeGetRequestByBitrate:_Total_bytes_read___llu_n
call fcn.00423db0
add esp, 0xc
cmp ebx, 0x2efe
je 0x470b34
cmp ebx, 0x2efd
je 0x470b34
cmp ebx, 0x2ee2
je 0x470b34
test ebx, ebx
jne 0x470b4c
mov ecx, dword [ebp - 0x88]
mov edx, dword [esi + 0x87]
push 0
push ecx
push edx
lea ecx, [esi + 0x2a]
call fcn.00467b00
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x94]
push eax
push ecx
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0xd0]
push eax
mov ecx, esi
call fcn.0046c7d0
push str._________End_Of_ResumeGetRequestByBitrate_Method___________n
call fcn.00423960
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 1
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470b99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.0046d4c0
mov eax, dword [ebp - 0xb4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470bcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret 0x38