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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
push ebp
call fcn.00475e30
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], ebx
mov byte [eax], bl
push dword [ebp + 0x10]
push esi
call fcn.00476040
add esp, 0x10
test al, al
je 0x4a4dd7
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x4a4cf3
nop dword [eax]
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x20]
push esi
call fcn.00477400
mov ebx, eax
add esp, 0x14
cmp ebx, 0x51
je 0x4a4dd7
push esi
call fcn.00486360
add esp, 4
test eax, eax
jne 0x4a4dca
test ebx, ebx
jne 0x4a4db2
cmp dword [esp + 0x18], ebx
jle 0x4a4d44
cmp dword [edi + 0x78], 2
jne 0x4a4b75
mov ecx, dword [edi + 0x80]
mov eax, ecx
mov edx, dword [edi + 0x84]
or eax, edx
je 0x4a4b37
sub ecx, 1
mov dword [edi + 0x80], ecx
sbb edx, ebx
mov dword [edi + 0x84], edx
js 0x4a4b24
jg 0x4a4ce5
test ecx, ecx
jne 0x4a4ce5
mov eax, dword [esp + 0x38]
mov dword [edi + 0x78], 0
mov byte [eax], 1
jmp 0x4a4d04
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.004a8550
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4a4ce5
push str.chunk_reading_DONE
push esi
call fcn.00476a30
add esp, 8
jmp 0x4a4cde
push 1
lea eax, [esp + 0x34]
push eax
lea ebp, [edi + 0x50]
push ebp
call fcn.0046b830
add esp, 0xc
test eax, eax
jne 0x4a4d29
cmp byte [esp + 0x30], 0xa
jne 0x4a4ce5
inc dword [edi + 0x74]
push ebp
call fcn.0046b8a0
lea ecx, [edi + 0x50]
mov ebp, eax
push ecx
call fcn.0046b890
mov ebx, eax
push ebx
push ebp
push 1
push esi
call fcn.004768c0
xor ecx, ecx
cmp dword [edi + 0x74], 1
push ebx
sete cl
push ebp
lea ecx, [ecx*8 + 0x14]
push ecx
push esi
call fcn.004771e0
add esp, 0x28
test eax, eax
jne 0x4a4dd9
push 1
push ebx
push esi
call fcn.00480bf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4a4d1f
mov al, byte [ebp]
cmp al, 0xd
je 0x4a4c2a
cmp al, 0xa
je 0x4a4c2a
push ebp
push edi
push esi
push dword [esp + 0x38]
call fcn.004a4800
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4a4d1f
lea eax, [edi + 0x50]
push eax
call fcn.0046b8b0
add esp, 4
jmp 0x4a4ce5
cmp dword [esi + 0xd8], 0x197
jne 0x4a4cde
cmp byte [esi + 0xd59], 0
jne 0x4a4cde
mov edx, dword [edi + 0x80]
mov eax, edx
mov ecx, dword [edi + 0x84]
or eax, ecx
mov dword [edi + 0x78], 2
je 0x4a4c72
push ecx
push edx
push str.Ignore__lld_bytes_of_response_body
push esi
call fcn.00476a30
add esp, 0x10
jmp 0x4a4ce5
cmp byte [edi + 0x8c], 0
je 0x4a4ccc
push str.Ignore_chunked_response_body
push esi
mov dword [esp + 0x24], 0
call fcn.00476a30
lea eax, [ebp + 1]
mov byte [esi + 0x141], 1
cmp byte [eax], 0xa
cmove ebp, eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [ebp + 1]
push eax
push esi
call fcn.004a8550
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4a4ce5
push str.chunk_reading_DONE
push esi
call fcn.00476a30
add esp, 8
jmp 0x4a4cde
push str.CONNECT:_no_content_length_or_chunked
push dword [esp + 0x30]
push esi
call fcn.00476ac0
add esp, 0xc
mov dword [edi + 0x78], 0
cmp dword [edi + 0x78], 0
jne 0x4a4aa0
xor ecx, ecx
test ecx, ecx
mov edx, dword [esp + 0x38]
sete al
mov byte [edx], al
test ebx, ebx
jne 0x4a4d1f
test ecx, ecx
jne 0x4a4d1f
mov eax, dword [esi + 0xd7c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x4a4d1f
push esi
call fcn.00481150
add esp, 4
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret
push str.CONNECT_response_too_large
push esi
call fcn.00476960
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp dword [esi + 0x170], 0
je 0x4a4d73
cmp dword [esi + 0x988], 0
je 0x4a4d73
cmp dword [esi + 0xd18], 0
je 0x4a4d73
push str.Proxy_CONNECT_connection_closed
push esi
mov byte [edi + 0x8d], 1
call fcn.00476a30
jmp 0x4a4d86
push str.Proxy_CONNECT_aborted
push esi
mov dword [esp + 0x18], 1
call fcn.00476960
xor ecx, ecx
mov dword [edi + 0x78], 0
add esp, 8
cmp dword [esp + 0x10], ecx
je 0x4a4cf1
mov eax, dword [esp + 0x38]
mov ebx, 0x38
pop edi
pop esi
pop ebp
mov byte [eax], 1
mov eax, ebx
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x38]
mov dword [edi + 0x78], 0
pop edi
pop esi
mov byte [eax], 1
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x18
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret