Function at 0x4b6990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x13], 0
mov byte [eax], 0
mov eax, dword [ebx + 0x248]
test eax, eax
jne 0x4b69c4
mov eax, 0x4000
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x4b69da
cmp byte [esi + 0x30], 0
jne 0x4b69da
sub ecx, dword [esi + 0x10]
cmp ecx, eax
jge 0x4b69da
mov eax, ecx
test eax, eax
je 0x4b6a0f
lea ecx, [esp + 0x14]
push ecx
push eax
push dword [esi + 0x7c]
push dword [edi + 0x268]
push edi
call fcn.004a93e0
mov ebp, eax
add esp, 0x14
cmp ebp, 0x51
je 0x4b6fc5
test ebp, ebp
jg 0x4b6e58
mov ecx, dword [esp + 0x14]
jmp 0x4b6a15
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x10], 0
jne 0x4b6a41
cmp dword [esi + 0x14], 0
jne 0x4b6a41
push 7
push ebx
call fcn.004b74a0
add esp, 8
cmp dword [esi + 0x68], 0
jle 0x4b6a3d
call fcn.004ae5d0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
or dword [eax], 1
test ecx, ecx
jne 0x4b6a56
cmp dword [esi + 0x78], ecx
jne 0x4b6a56
lea eax, [ecx + 1]
jmp 0x4b6a58
xor eax, eax
test eax, eax
setne al
mov byte [esp + 0x20], al
test ecx, ecx
jg 0x4b6a6d
test al, al
je 0x4b6e62
mov eax, dword [esi + 0x7c]
mov byte [ecx + eax], 0
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x25c]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x4b6aac
lea ecx, [esp + 0x13]
push ecx
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
call eax
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4b6e58
cmp byte [esp + 0x13], al
jne 0x4b6fc5
cmp byte [esi + 0x30], 0
je 0x4b6b1d
lea eax, [esp + 0x28]
mov byte [esp + 0x28], 0
push eax
lea eax, [esp + 0x18]
push eax
push edi
push ebx
call fcn.004b09e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4b6e58
mov eax, dword [edi + 0x25c]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x4b6b12
cmp dword [esi + 8], ebp
jg 0x4b6b12
cmp dword [esp + 0x14], ebp
jle 0x4b6b12
lea ecx, [esp + 0x13]
push ecx
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
call eax
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4b6e58
cmp byte [esp + 0x13], al
jne 0x4b6fc5
cmp byte [esp + 0x28], 0
jne 0x4b6e6e
cmp dword [esi + 0x44], 0
mov cl, byte [esp + 0x20]
je 0x4b6e04
cmp byte [esi + 0x30], 0
jne 0x4b6e04
cmp dword [esp + 0x14], 0
jg 0x4b6b44
test cl, cl
je 0x4b6e04
cmp dword [esi + 0x78], 0
jne 0x4b6bda
test cl, cl
jne 0x4b6bda
mov eax, dword [edi + 0x25c]
test dword [eax + 0x3c], 0x40003
je 0x4b6bda
cmp dword [ebx + 0xe0], 0
je 0x4b6b8f
cmp byte [edi + 0x230], cl
jne 0x4b6eea
push str.Ignoring_the_response_body_n
push ebx
mov byte [esi + 0x8d], 1
call fcn.004a9320
add esp, 8
cmp dword [ebx + 0x85f4], 0
je 0x4b6bb4
cmp byte [esi + 0x54], 0
jne 0x4b6bb4
cmp dword [ebx + 0x200], 1
jne 0x4b6bb4
cmp byte [esi + 0x8d], 0
je 0x4b6ecb
cmp dword [ebx + 0x1f8], 0
je 0x4b6bda
cmp dword [ebx + 0x85f0], 0
jne 0x4b6bda
push dword [esi + 0x74]
push ebx
call fcn.004b5ea0
add esp, 8
test al, al
je 0x4b6f1d
inc dword [esi + 0x78]
cmp byte [ebx + 0x284], 0
je 0x4b6c1a
cmp dword [esi + 0x34], 0
push edi
je 0x4b6c08
push dword [esi + 0x40]
push dword [ebx + 0x4bc]
push 3
push ebx
call fcn.004a9180
add esp, 0x14
cmp dword [esi + 0x34], 1
jne 0x4b6c1a
push edi
push dword [esp + 0x18]
push dword [esi + 0x44]
push 3
push ebx
call fcn.004a9180
add esp, 0x14
cmp byte [esi + 0xa0], 0
je 0x4b6c99
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push dword [esi + 0x44]
push edi
call fcn.004c0c50
add esp, 0x10
test eax, eax
jg 0x4b6f4d
cmp eax, 0xffffffff
jne 0x4b6c99
and dword [esi + 0x88], 0xfffffffe
mov eax, dword [edi + 0x24]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4b6c99
push eax
push str.Leftovers_after_chunking:__zu_bytes_n
push dword [edi]
call fcn.004a9320
mov eax, dword [edi]
push dword [eax + 0x40]
call fcn.004a9bd0
add esp, 0x10
test al, al
je 0x4b6c99
push dword [esp + 0x28]
push str.Rewinding__zu_bytes_n
push dword [edi]
call fcn.004a9320
mov eax, dword [esp + 0x34]
add esp, 0xc
sub dword [edi + 0x2dc], eax
mov byte [edi + 0x245], 1
cmp dword [esi + 0x34], 0
je 0x4b6cae
cmp byte [esi + 0x8d], 0
jne 0x4b6cae
mov eax, dword [esi + 0x40]
add dword [esi + 0x10], eax
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x4b6d60
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
add eax, edx
cmp eax, ecx
jl 0x4b6d60
mov eax, edx
sub eax, ecx
add eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
je 0x4b6d44
cmp byte [esi + 0x8d], 0
jne 0x4b6d44
mov eax, dword [edi]
push dword [eax + 0x40]
call fcn.004a9bd0
add esp, 4
test al, al
je 0x4b6d2a
push dword [esp + 0x14]
push dword [esi + 0x10]
push dword [esi + 8]
push dword [esi]
push dword [ebx + 0x85e8]
push dword [esp + 0x2c]
push str.Rewinding_stream_by_:__zu_bytes_on_url__s__size___ld__maxdownload___ld__bytecount___ld__nread___zd__n
push ebx
call fcn.004a9320
mov eax, dword [esp + 0x38]
add esp, 0x20
sub dword [edi + 0x2dc], eax
mov byte [edi + 0x245], 1
jmp 0x4b6d44
push dword [esi + 0x10]
push dword [esi + 8]
push dword [esi]
push dword [esp + 0x24]
push str.Excess_found_in_a_non_pipelined_read:_excess___zu__size___ld__maxdownload___ld__bytecount___ld_n
push ebx
call fcn.004a9320
add esp, 0x18
mov ecx, dword [esi + 8]
mov eax, 0
sub ecx, dword [esi + 0x10]
sets al
dec eax
and eax, ecx
and dword [esi + 0x88], 0xfffffffe
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add dword [esi + 0x10], eax
push dword [esi + 0x10]
push ebx
call fcn.004b73f0
add esp, 8
cmp byte [esi + 0xa0], 0
jne 0x4b6e00
cmp dword [esp + 0x14], 0
jne 0x4b6d95
cmp dword [esi + 0x34], 0
jne 0x4b6d9b
mov cl, byte [esp + 0x20]
test cl, cl
je 0x4b6e04
cmp dword [esi + 0x34], 0
je 0x4b6dd2
cmp byte [esi + 0x8d], 0
jne 0x4b6dd2
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4b6db4
cmp dword [esi + 0x40], eax
jle 0x4b6db4
push eax
jmp 0x4b6db7
push dword [esi + 0x40]
push dword [ebx + 0x4bc]
push 1
push edi
call fcn.004a9150
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4b6e58
cmp dword [esi + 0x34], 2
jge 0x4b6df5
cmp byte [esi + 0x8d], 0
jne 0x4b6df5
push dword [esp + 0x14]
push dword [esi + 0x44]
push 1
push edi
call fcn.004a9150
add esp, 0x10
mov ebp, eax
mov dword [esi + 0x34], 0
test ebp, ebp
jne 0x4b6e58
mov cl, byte [esp + 0x20]
mov eax, dword [edi + 0x25c]
cmp dword [eax + 0x34], 0
je 0x4b6e25
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4b6e25
cmp byte [edi + 0x245], 0
je 0x4b6f8f
test cl, cl
je 0x4b6e30
and dword [esi + 0x88], 0xfffffffe
mov eax, dword [edi + 0x25c]
test byte [eax + 0x3c], 0x30
jne 0x4b69b5
push 0
push edi
call fcn.004a8990
add esp, 8
test al, al
jne 0x4b69b5
jmp 0x4b6fc5
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
and dword [esi + 0x88], 0xfffffffe
jmp 0x4b6fc5
cmp dword [esp + 0x14], 0
jle 0x4b6fc5
mov eax, dword [edi]
push dword [eax + 0x40]
call fcn.004a9bd0
add esp, 4
push dword [ebx + 0x85e8]
push dword [esp + 0x18]
test al, al
je 0x4b6eb8
push str.Rewinding_stream_by_:__zd_bytes_on_url__s__zero_length_body__n
push ebx
call fcn.004a9320
mov eax, dword [esp + 0x24]
add esp, 0x10
sub dword [edi + 0x2dc], eax
mov byte [edi + 0x245], 1
jmp 0x4b6fc5
push str.Excess_found_in_a_non_pipelined_read:_excess___zd_url___s__zero_length_body__n
push ebx
call fcn.004a9320
add esp, 0x10
jmp 0x4b6fc5
mov eax, dword [esi]
cmp eax, dword [ebx + 0x85f4]
jne 0x4b6f02
push str.The_entire_document_is_already_downloaded
push ebx
call fcn.004a9320
add esp, 8
mov byte [edi + 0x230], 1
and dword [esi + 0x88], 0xfffffffe
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov byte [eax], 1
xor eax, eax
pop ebx
add esp, 0xc
ret
push str.HTTP_server_doesnt_seem_to_support_byte_ranges._Cannot_resume.
push ebx
call fcn.004a9250
add esp, 8
mov eax, 0x21
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x30]
push str.Simulate_a_HTTP_304_response__n
push ebx
mov byte [eax], 1
mov dword [ebx + 0x8624], 0x130
call fcn.004a9320
add esp, 8
mov byte [edi + 0x230], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp eax, 4
jne 0x4b6f6d
push str.Failed_writing_data
push ebx
call fcn.004a9250
add esp, 8
mov eax, 0x17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push eax
call fcn.004c0bd0
push eax
push str._s_in_chunked_encoding
push ebx
call fcn.004a9250
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x13]
add dword [esi + 0x44], eax
mov eax, dword [edi + 0x25c]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
push ecx
mov eax, dword [eax + 0x34]
push edi
push ebx
call eax
add esp, 0x10
test eax, eax
jne 0x4b6ff1
cmp byte [esp + 0x13], al
je 0x4b6fc5
or dword [esi + 0x88], 1
mov eax, dword [esi + 0x88]
and al, 3
cmp al, 2
jne 0x4b6fef
cmp byte [edi + 0x230], 0
je 0x4b6fef
push str.we_are_done_reading_and_this_is_set_to_close__stop_send_n
push ebx
call fcn.004a9320
add esp, 8
and dword [esi + 0x88], 0xfffffffd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret