Function at 0x46e1d0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9548
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.0046d5a0
mov ebx, dword [ebp + 0x3c]
mov dword [ebp - 4], esi
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x10]
push eax
push ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x46e3cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ResumeGetRequestEx_:_Error_occured_in_WinHttpQueryDataAvailable______lu__n
mov dword [ebp - 0x14], esi
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
cmp esi, 0x2ee2
je 0x46e26a
cmp esi, 0x2efe
je 0x46e26a
cmp esi, 0x2efd
jne 0x46e3cb
mov edx, dword [edi + 0x9b]
mov eax, dword [edi + 0x97]
push edx
push eax
push str.ResumeGetRequestEx_:_Total_Bytes_read_so_far:_llu_n
call fcn.00423db0
push str.ResumeGetRequestEx_:_second_attempt_to_recover_from_previous_error_n
call fcn.00423db0
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 0x10
cmp eax, 0xffffffff
je 0x46e2b8
push eax
call esi
test eax, eax
jne 0x46e2b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_WinHttpCloseHandle_hRequest______d__n
call fcn.00423960
add esp, 8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x46e2db
push eax
call esi
test eax, eax
jne 0x46e2db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_WinHttpCloseHandle_hConnect______d__n
call fcn.00423960
add esp, 8
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x46e2fd
push eax
call esi
test eax, eax
jne 0x46e2fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_WinHttpCloseHandle_hSession______d__n
call fcn.00423960
add esp, 8
push 0x190
push 1
mov dword [ebx + 0x14], 0
call fcn.00491e51
mov ecx, dword [edi + 0x9b]
mov esi, eax
mov eax, dword [edi + 0x97]
mov edx, eax
add esp, 8
or edx, ecx
jne 0x46e337
push str.Range:_bytes0_
push esi
call fcn.00463e60
add esp, 8
jmp 0x46e347
push ecx
push eax
push str.Range:_bytes_llu_
push esi
call fcn.00463e60
add esp, 0x10
push esi
push str.ResumeGetRequestEx:_Content_Range_Header_message:__S_n
call fcn.00423960
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x34]
push 0
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp + 0x30]
push ebx
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x10], esi
call fcn.00469e40
add esp, 0x48
mov dword [ebp - 0x14], eax
test esi, esi
je 0x46e3af
push esi
call fcn.0048efd8
add esp, 4
cmp dword [ebp - 0x14], 0
jne 0x46e3cb
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x46e491
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x46e4e5
cmp esi, dword [edi + 0x56]
jbe 0x46e40f
mov eax, dword [edi + 0x87]
mov dword [edi + 0x56], esi
test eax, eax
je 0x46e3fe
push eax
call fcn.0048efd8
mov esi, dword [ebp - 0x10]
add esp, 4
mov dword [edi + 0x87], 0
push esi
push 1
call fcn.00491e51
add esp, 8
mov dword [edi + 0x87], eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x56]
jbe 0x46e457
mov edx, dword [edi + 0x87]
push 1
push eax
push edx
lea ecx, [edi + 0x2a]
call fcn.00467b00
mov ecx, dword [edi + 0x87]
mov esi, eax
mov eax, dword [edi + 0x56]
push eax
push 0
push ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0
call fcn.00492ac0
add esp, 0xc
test esi, esi
jne 0x46e4b6
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0x87]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebx + 8]
push esi
add ecx, eax
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x46e4c6
mov eax, dword [ebp - 0x1c]
add dword [edi + 0x97], eax
adc dword [edi + 0x9b], 0
add dword [ebp - 0x18], eax
test eax, eax
je 0x46e4e5
xor esi, esi
jmp 0x46e216
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ResumeGetRequestEx_:_Error_occured_in_WinHttpQueryDataAvailable______lu__n
mov dword [ebp - 0x14], esi
call fcn.00423ad0
push esi
call fcn.00464180
mov dword [ebp - 0x10], 0
jmp 0x46e4e2
push esi
push str.ResumeGetRequestEx_:__Error_in_WriteFile______lu__n
call fcn.00423ad0
add esp, 8
jmp 0x46e4e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ResumeGetRequestEx_:__Error_in_WinHttpReadData______lu__n
mov dword [ebp - 0x14], esi
call fcn.00423ad0
push esi
call fcn.00464180
add esp, 0xc
mov esi, dword [ebp - 0x14]
cmp esi, 0x2efe
je 0x46e504
cmp esi, 0x2efd
je 0x46e504
cmp esi, 0x2ee2
je 0x46e504
test esi, esi
jne 0x46e519
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0x87]
push 0
push eax
push ecx
lea ecx, [edi + 0x2a]
call fcn.00467b00
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0046d4c0
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 0x3c