Function at 0x4c0a3b
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x20], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov eax, dword [ebx + eax*4 + 0x1a8]
mov edi, dword [ebx]
mov esi, dword [ebx + 0x560]
mov dword [ebp - 0x1c], eax
call fcn.004c13db
pop ecx
test al, al
je 0x4c0a72
xor eax, eax
jmp 0x4c13d4
and dword [ebx + 0x284], 0xff7fffff
cmp dword [esi + 0x4018], 0
jne 0x4c0ccf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.004b5bc7
push dword [edi + 0x148]
call dword [0x5d40d0]
and dword [edi + 0x148], 0
add esp, 0x14
call fcn.004ba96a
mov dword [ebp + 8], eax
test eax, eax
je 0x4c127d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._s:_d
call fcn.004c16f6
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4c1284
push 1
push eax
push str.CONNECT
push ebx
call fcn.004bb652
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call dword [0x5d40d0]
add esp, 0x14
cmp dword [ebp - 4], 0
jne 0x4c0caa
and dword [ebp - 0xc], 0
mov ecx, 0x592c44
cmp dword [ebx + 0xf0], 1
mov eax, 0x592c48
mov edx, 0x5bd104
cmovne eax, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x284]
shr ecx, 9
mov dword [ebp - 0x18], eax
and cl, 1
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebx + 0x9c]
je 0x4c0b53
push 0x3a
push eax
call fcn.0052dfd0
pop ecx
test eax, eax
mov edx, 0x5bd104
pop ecx
setne cl
push dword [ebp + 0x14]
test cl, cl
mov eax, 0x5c00fc
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x5c0100
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.004c16f6
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
je 0x4c1284
push str.Host
push ebx
call fcn.004bafce
pop ecx
pop ecx
test eax, eax
jne 0x4c0bb0
push dword [ebp - 8]
push str.Host:__s_r_n
call fcn.004c16f6
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x4c1269
push str.Proxy_Connection
push ebx
call fcn.004bafce
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x5bd104
cmovne ecx, eax
push str.User_Agent
push ebx
mov dword [ebp - 0x14], ecx
call fcn.004bafce
add esp, 0x10
test eax, eax
jne 0x4c0bf0
cmp dword [edi + 0x9c4], eax
je 0x4c0bf0
mov eax, dword [ebx + 0x2d8]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
mov eax, dword [ebx + 0x2d4]
mov edx, 0x5bd104
push dword [ebp - 4]
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, edx
push ecx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
cmovne eax, ecx
push eax
push dword [ebp - 0x18]
lea eax, [ebp + 8]
push dword [ebp - 8]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.004bab72
mov dword [ebp - 4], eax
add esp, 0x20
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4c0c3d
push eax
call dword [0x5d40d0]
pop ecx
push dword [ebp - 8]
call dword [0x5d40d0]
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jne 0x4c0c95
push dword [ebp + 8]
push 1
push ebx
call fcn.004babd3
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c0c95
lea eax, [ebp + 8]
push 0x5be9c4
push eax
call fcn.004bab72
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x4c0c95
push dword [ebp + 0xc]
push eax
lea eax, [edi + 0xf98]
push eax
lea eax, [ebp + 8]
push ebx
push eax
call fcn.004ba977
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp + 8], 0
test eax, eax
je 0x4c0caa
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.004b5af1
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
call fcn.004ba944
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jne 0x4c13d4
and dword [esi + 0x4000], eax
mov dword [esi + 0x4018], 1
push 1
push 0
push edi
call fcn.004b6d8e
add esp, 0xc
test edx, edx
jl 0x4c13c4
jg 0x4c0cee
test eax, eax
je 0x4c13c4
push dword [ebp + 0xc]
push ebx
call fcn.004b64ca
pop ecx
pop ecx
test al, al
je 0x4c0a6b
and dword [ebp - 8], 0
cmp dword [esi + 0x4004], 0
je 0x4c11e1
lea ecx, [esi + 0x4000]
mov eax, dword [esi + 0x400c]
cmp eax, ecx
jae 0x4c1296
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
push dword [ebp - 0x1c]
push ebx
call fcn.004b5c7f
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp eax, 0x51
je 0x4c0a6b
push ebx
call fcn.004bf85b
pop ecx
test eax, eax
jne 0x4c128f
cmp dword [ebp - 0x18], eax
jne 0x4c11da
cmp dword [ebp - 0x10], eax
jle 0x4c119d
cmp dword [esi + 0x4004], 1
jle 0x4c0e00
mov ecx, dword [esi + 0x4010]
mov eax, ecx
mov edx, dword [esi + 0x4014]
or eax, edx
mov dword [esi + 0x400c], esi
je 0x4c0dca
sub ecx, 1
mov dword [esi + 0x4010], ecx
sbb edx, 0
xor ecx, ecx
mov dword [esi + 0x4014], edx
cmp edx, ecx
jl 0x4c0db5
jg 0x4c1188
cmp dword [esi + 0x4010], ecx
ja 0x4c1188
mov dword [esi + 0x4004], ecx
mov dword [esi + 0x4018], 2
jmp 0x4c11e1
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push ebx
call fcn.004d9ae9
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c1188
push str.chunk_reading_DONE_n
push edi
call fcn.004b5bc7
and dword [esi + 0x4004], 0
pop ecx
pop ecx
jmp 0x4c117e
mov eax, dword [esi + 0x400c]
lea ecx, [esi + 0x4000]
inc dword [ecx]
cmp byte [eax], 0xa
je 0x4c0e1f
inc eax
mov dword [esi + 0x400c], eax
jmp 0x4c118e
test dword [edi + 0xa8c], 0x4000000
je 0x4c0e44
push dword [ecx]
push dword [esi + 0x4008]
push 1
push edi
call fcn.004b5a76
add esp, 0x10
lea ecx, [esi + 0x4000]
test dword [edi + 0xa90], 0x80000
jne 0x4c0e7d
push dword [ecx]
mov eax, dword [edi + 0xa8c]
push dword [esi + 0x4008]
and eax, 0x200000
or eax, 0x400000
shr eax, 0x15
push eax
push ebx
call fcn.004b5a49
add esp, 0x10
test eax, eax
jne 0x4c13d4
lea ecx, [esi + 0x4000]
mov eax, dword [ecx]
cdq
add dword [edi + 0xf90], eax
adc dword [edi + 0xf94], edx
mov eax, dword [ecx]
cdq
add dword [edi + 0xb0], eax
adc dword [edi + 0xb4], edx
mov ecx, dword [esi + 0x4008]
mov al, byte [ecx]
cmp al, 0xd
je 0x4c10b6
cmp al, 0xa
je 0x4c10b6
mov eax, dword [esi + 0x4000]
push 0x11
mov byte [ecx + eax], 0
push dword [esi + 0x4008]
push str.WWW_Authenticate:
call fcn.004b815f
add esp, 0xc
test eax, eax
je 0x4c0eec
mov eax, dword [edi + 0x108]
mov dword [ebp - 0xc], eax
cmp eax, 0x191
je 0x4c0f15
push 0x13
push dword [esi + 0x4008]
push str.Proxy_authenticate:
call fcn.004b815f
add esp, 0xc
test eax, eax
je 0x4c0f60
mov eax, dword [edi + 0x108]
mov dword [ebp - 0xc], eax
cmp eax, 0x197
jne 0x4c0f60
push dword [esi + 0x4008]
call fcn.004bb0df
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
je 0x4c127d
cmp dword [ebp - 0xc], 0x197
push eax
sete cl
movzx ecx, cl
push ecx
push ebx
call fcn.004bb414
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call dword [0x5d40d0]
mov eax, dword [ebp - 0x14]
add esp, 0x10
test eax, eax
jne 0x4c13d4
jmp 0x4c109c
push 0xf
push dword [esi + 0x4008]
push str.Content_Length:
call fcn.004b815f
add esp, 0xc
test eax, eax
je 0x4c0fbd
mov ecx, dword [edi + 0x108]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x4c0f9b
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.004b5bc7
jmp 0x4c1043
lea eax, [esi + 0x4010]
push eax
mov eax, dword [esi + 0x4008]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.004c2f6a
add esp, 0x10
jmp 0x4c109c
push str.close
push str.Connection:
push dword [esi + 0x4008]
call fcn.004bb039
add esp, 0xc
test al, al
jne 0x4c1064
push 0x12
push dword [esi + 0x4008]
push str.Transfer_Encoding:
call fcn.004b815f
add esp, 0xc
test eax, eax
je 0x4c1048
mov ecx, dword [edi + 0x108]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x4c100f
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
jmp 0x4c0f90
push str.chunked
push str.Transfer_Encoding:
push dword [esi + 0x4008]
call fcn.004bb039
add esp, 0xc
test al, al
je 0x4c109c
push str.CONNECT_responded_chunked_n
push edi
call fcn.004b5bc7
or dword [esi + 0x401c], 1
push ebx
call fcn.004d9ad6
add esp, 0xc
jmp 0x4c109c
push str.close
push str.Proxy_Connection:
push dword [esi + 0x4008]
call fcn.004bb039
add esp, 0xc
test al, al
je 0x4c106d
or dword [esi + 0x401c], 2
jmp 0x4c109c
lea eax, [edi + 0x108]
push eax
lea eax, [ebp - 0x20]
push eax
push str.HTTP_1._d__d
push dword [esi + 0x4008]
call fcn.0048f3e0
add esp, 0x10
cmp eax, 2
jne 0x4c109c
mov eax, dword [edi + 0x108]
mov dword [edi + 0xf7c], eax
lea ecx, [esi + 0x4000]
mov dword [esi + 0x400c], esi
and dword [ecx], 0
mov dword [esi + 0x4008], esi
jmp 0x4c118e
mov dword [esi + 0x400c], esi
cmp dword [edi + 0x108], 0x197
jne 0x4c1169
test byte [edi + 0xf4c], 0x20
jne 0x4c1169
mov ecx, dword [esi + 0x4010]
mov eax, ecx
mov edx, dword [esi + 0x4014]
or eax, edx
mov dword [esi + 0x4004], 2
je 0x4c1107
push edx
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.004b5bc7
add esp, 0x10
jmp 0x4c1170
test byte [esi + 0x401c], 1
je 0x4c1169
push str.Ignore_chunked_response_body_n
push edi
call fcn.004b5bc7
or dword [edi + 0x590], 8
mov eax, dword [esi + 0x4008]
inc eax
pop ecx
pop ecx
cmp byte [eax], 0xa
jne 0x4c1136
mov dword [esi + 0x4008], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x4008]
push 1
inc eax
push eax
push ebx
call fcn.004d9ae9
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4c1170
push str.chunk_reading_DONE_n
push edi
call fcn.004b5bc7
pop ecx
pop ecx
mov dword [esi + 0x4018], 2
and dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x4c1188
mov dword [esi + 0x4018], 2
lea ecx, [esi + 0x4000]
cmp dword [esi + 0x4004], 0
jne 0x4c0d18
jmp 0x4c11e1
cmp dword [edi + 0x5c0], 0
je 0x4c11c6
cmp dword [edi + 0xcf0], 0
je 0x4c11c6
or dword [ebx + 0x284], 0x800000
push str.Proxy_CONNECT_connection_closed_n
push edi
call fcn.004b5bc7
jmp 0x4c11d8
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 8], 1
call fcn.004b5af1
pop ecx
pop ecx
and dword [esi + 0x4004], 0
push ebx
call fcn.004bf85b
pop ecx
test eax, eax
jne 0x4c128f
cmp dword [ebp - 8], eax
jne 0x4c12a3
mov eax, dword [edi + 0xf7c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x4c1228
push ebx
call fcn.004bb184
pop ecx
test eax, eax
jne 0x4c13d4
test byte [ebx + 0x284], 1
je 0x4c1228
or dword [esi + 0x401c], 2
test byte [esi + 0x401c], 2
je 0x4c123a
cmp dword [edi + 0x148], 0
jne 0x4c12aa
cmp dword [edi + 0x148], 0
je 0x4c12c7
cmp dword [esi + 0x4018], 2
jne 0x4c125a
push 1
push ebx
call fcn.004c15eb
pop ecx
pop ecx
cmp dword [edi + 0x148], 0
jne 0x4c0a7c
jmp 0x4c12c7
push dword [ebp - 8]
call dword [0x5d40d0]
lea eax, [ebp + 8]
push eax
call fcn.004ba944
pop ecx
pop ecx
push 0x1b
jmp 0x4c13d3
lea eax, [ebp + 8]
push eax
call fcn.004ba944
jmp 0x4c127c
push 0x2a
jmp 0x4c13d3
push str.CONNECT_response_too_large_
push edi
call fcn.004b5af1
pop ecx
pop ecx
push 0x38
jmp 0x4c13d3
mov eax, dword [ebp + 0xc]
push dword [ebx + eax*4 + 0x1a8]
push ebx
call fcn.004b645c
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
or dword [ebx + eax*4 + 0x1a8], 0xffffffff
mov eax, dword [edi + 0xf7c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x4c1376
test byte [esi + 0x401c], 2
je 0x4c130d
cmp dword [edi + 0x148], 0
je 0x4c130d
or dword [ebx + 0x284], 0x800000
push str.Connect_me_again_please_n
push edi
call fcn.004b5bc7
push ebx
call fcn.004c15c5
add esp, 0xc
jmp 0x4c1346
push dword [edi + 0x148]
call dword [0x5d40d0]
and dword [edi + 0x148], 0
push 2
push ebx
call fcn.004b6559
mov eax, dword [ebp + 0xc]
push dword [ebx + eax*4 + 0x1a8]
push ebx
call fcn.004b645c
mov eax, dword [ebp + 0xc]
add esp, 0x14
or dword [ebx + eax*4 + 0x1a8], 0xffffffff
and dword [esi + 0x4018], 0
test dword [ebx + 0x284], 0x800000
jne 0x4c0a6b
push dword [edi + 0x108]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.004b5af1
add esp, 0xc
jmp 0x4c12a3
mov dword [esi + 0x4018], 2
push dword [ebx + 0x2d4]
call dword [0x5d40d0]
and dword [ebx + 0x2d4], 0
push dword [edi + 0xf7c]
or dword [edi + 0xcf4], 1
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
call fcn.004b5bc7
and dword [edi + 0x590], 0xfffffff7
add esp, 0x10
and dword [ebx + 0x284], 0xfffeffff
jmp 0x4c0a6b
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.004b5af1
pop ecx
pop ecx
push 0x1c
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret