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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebp, ecx
mov esi, edx
push edi
mov dword [esp + 0x18], ebp
xor ebx, ebx
call fcn.00486728
and dword [esp + 0x1c], ebx
mov ecx, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov byte [eax], bl
mov edx, dword [ebp + 0x10]
call fcn.00486638
test al, al
je 0x4b00df
mov edi, dword [esp + 0x38]
jmp 0x4b005e
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1b]
mov ecx, esi
push 1
push eax
call fcn.00482f64
mov ebx, eax
add esp, 0xc
cmp ebx, 0x51
je 0x4b00df
mov ecx, esi
call fcn.004936ee
test eax, eax
jne 0x4b00da
test ebx, ebx
jne 0x4afea7
cmp dword [esp + 0x24], ebx
jle 0x4b007f
cmp dword [edi + 0x78], 2
jne 0x4aff1a
mov ecx, dword [edi + 0x80]
mov eax, ecx
mov edx, dword [edi + 0x84]
or eax, edx
je 0x4afee0
sub ecx, 1
mov dword [edi + 0x80], ecx
sbb edx, ebx
mov dword [edi + 0x84], edx
js 0x4afea7
jg 0x4b005e
test ecx, ecx
jne 0x4b005e
and dword [edi + 0x78], 0
xor ecx, ecx
mov edx, dword [esp + 0x3c]
test ecx, ecx
sete al
mov byte [edx], al
test ebx, ebx
jne 0x4afed9
test ecx, ecx
jne 0x4afed9
mov eax, dword [esi + 0xd94]
sub eax, 0xc8
cmp eax, 0x64
jb 0x4afed9
mov ecx, esi
call fcn.00493c84
mov ebx, eax
mov eax, ebx
jmp 0x4b00e1
and dword [esp + 0x28], 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push 1
lea edx, [esp + 0x23]
call fcn.004b07d7
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4b005e
push str.chunk_reading_DONE
push esi
call fcn.0048c275
pop ecx
pop ecx
jmp 0x4b005a
push 1
lea edx, [esp + 0x1b]
lea ecx, [edi + 0x50]
call fcn.00482fdc
pop ecx
test eax, eax
jne 0x4b006e
cmp byte [esp + 0x17], 0xa
jne 0x4b005e
mov ebx, dword [edi + 0x54]
xor edx, edx
mov ebp, dword [edi + 0x50]
inc edx
inc dword [edi + 0x74]
mov ecx, esi
push ebx
push ebp
call fcn.0048c137
cmp dword [edi + 0x74], 1
mov ecx, esi
push 0x14
pop edx
push 0x1c
pop eax
push ebx
cmove edx, eax
push ebp
call fcn.004829cd
add esp, 0x10
test eax, eax
jne 0x4b00e1
push 1
mov edx, ebx
mov ecx, esi
call fcn.0049740b
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4afed9
mov al, byte [ebp]
cmp al, 0xd
je 0x4affb9
cmp al, 0xa
je 0x4affb9
mov ecx, dword [esp + 0x18]
mov edx, esi
push ebp
push edi
call fcn.004afb97
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4afed9
lea ecx, [edi + 0x50]
call fcn.0048306e
jmp 0x4b005e
cmp dword [esi + 0xd8], 0x197
jne 0x4b005a
cmp byte [esi + 0xd71], 0
jne 0x4b005a
mov ecx, dword [edi + 0x80]
mov eax, ecx
mov edx, dword [edi + 0x84]
or eax, edx
mov dword [edi + 0x78], 2
je 0x4b0001
push edx
push ecx
push str.Ignore__lld_bytes_of_response_body
push esi
call fcn.0048c275
add esp, 0x10
jmp 0x4b005e
cmp byte [edi + 0x8c], 0
je 0x4b0048
and dword [esp + 0x28], 0
push str.Ignore_chunked_response_body
push esi
call fcn.0048c275
lea eax, [ebp + 1]
mov byte [esi + 0x141], 1
cmp byte [eax], 0xa
mov ecx, esi
cmove ebp, eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
push 1
lea edx, [ebp + 1]
call fcn.004b07d7
add esp, 0x14
jmp 0x4afeff
push str.CONNECT:_no_content_length_or_chunked
push dword [esp + 0x1c]
push esi
call fcn.0048c2f0
add esp, 0xc
and dword [edi + 0x78], 0
mov ecx, dword [edi + 0x78]
test ecx, ecx
jne 0x4afe28
jmp 0x4afead
push str.CONNECT_response_too_large
push esi
call fcn.0048c1c7
pop ecx
pop ecx
push 0x38
jmp 0x4b00dc
xor eax, eax
cmp dword [esi + 0x170], eax
je 0x4b00ad
cmp dword [esi + 0x9a0], eax
je 0x4b00ad
cmp dword [esi + 0xd30], eax
je 0x4b00ad
push str.Proxy_CONNECT_connection_closed
push esi
mov byte [edi + 0x8d], 1
call fcn.0048c275
jmp 0x4b00c0
push str.Proxy_CONNECT_aborted
push esi
mov dword [esp + 0x24], 1
call fcn.0048c1c7
and dword [edi + 0x78], 0
pop ecx
pop ecx
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
je 0x4afead
push 0x38
pop ebx
jmp 0x4afeab
push 0x2a
pop eax
jmp 0x4b00e1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret