Function at 0x4a53c0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
mov edx, dword [edi + eax*4 + 0x1a8]
mov ebp, dword [edi]
mov esi, dword [edi + 0x668]
xor ecx, ecx
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
call fcn.004a52d0
add esp, 4
test eax, eax
jne 0x4a5e5b
mov dword [edi + 0x304], ecx
cmp dword [esi + 0x401c], 0
jne 0x4a567b
mov eax, dword [esp + 0x40]
push ebx
push eax
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.00498f80
mov ecx, dword [ebp + 0x148]
push ecx
call dword [0x4f5154]
add esp, 0x14
mov dword [ebp + 0x148], 0
call fcn.004a2af0
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x4a5c93
mov edx, dword [esp + 0x40]
push ebx
push edx
push str._s:_d
call fcn.0049d490
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4a5c8a
mov eax, dword [esp + 0x38]
push 1
push ebx
push str.CONNECT
push eax
call fcn.004a2620
push ebx
mov edi, eax
call dword [0x4f5154]
add esp, 0x14
test edi, edi
jne 0x4a5652
mov ebx, dword [esp + 0x38]
cmp dword [ebx + 0xec], 1
mov eax, 0x4d3262
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x4ce744
je 0x4a54bf
mov dword [esp + 0x20], 0x4ce748
mov edi, dword [esp + 0x40]
mov eax, dword [ebx + 0x2c4]
cmp edi, dword [ebx + 0x9c]
je 0x4a54e2
push 0x3a
push edi
call fcn.0047ecf0
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x4a54f2
mov ecx, 0x4d8310
mov eax, 0x4d8308
jmp 0x4a54f9
mov ecx, 0x4d3262
mov eax, ecx
mov edx, dword [esp + 0x44]
push edx
push ecx
push edi
push eax
push str._s_s_s:_d
call fcn.0049d490
mov edi, eax
add esp, 0x14
mov dword [esp + 0x24], edi
test edi, edi
je 0x4a5ca0
push str.Host
push ebx
call fcn.004a1f90
add esp, 8
test eax, eax
jne 0x4a5548
push edi
push str.Host:__s_r_n
call fcn.0049d490
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a5cba
push str.Proxy_Connection
push ebx
call fcn.004a1f90
add esp, 8
test eax, eax
jne 0x4a5562
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push ebx
call fcn.004a1f90
add esp, 8
test eax, eax
jne 0x4a5586
cmp dword [ebp + 0x674], eax
je 0x4a5586
mov eax, dword [ebx + 0x368]
mov dword [esp + 0x1c], eax
mov ebx, dword [ebx + 0x364]
mov ecx, ebx
test ebx, ebx
jne 0x4a5597
mov ecx, 0x4d3262
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a55a4
mov eax, 0x4d3262
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.004a3440
add esp, 0x20
cmp dword [esp + 0x10], 0
mov edi, eax
je 0x4a55e3
mov edx, dword [esp + 0x10]
push edx
call dword [0x4f5154]
add esp, 4
mov eax, dword [esp + 0x24]
push eax
call dword [0x4f5154]
add esp, 4
test edi, edi
jne 0x4a563c
mov ecx, dword [esp + 0x38]
push ebx
push 1
push ecx
call fcn.004a3600
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4a563c
push 0x4c799c
push ebx
call fcn.004a3440
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a563c
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
push eax
lea eax, [ebp + 0xd10]
push eax
push ecx
push ebx
call fcn.004a2b30
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4a5656
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.00499010
add esp, 8
jmp 0x4a5656
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004a2b00
add esp, 4
test edi, edi
jne 0x4a5cdb
mov dword [esi + 0x4000], edi
mov edi, dword [esp + 0x38]
mov dword [esi + 0x401c], 1
push 1
push 0
push ebp
call fcn.0049b840
add esp, 0xc
test edx, edx
jl 0x4a5ce5
jg 0x4a569a
test eax, eax
jbe 0x4a5ce5
mov edx, dword [esp + 0x3c]
push edx
push edi
call fcn.0049ba30
add esp, 8
test eax, eax
je 0x4a5e5b
cmp dword [esi + 0x4004], 0
mov dword [esp + 0x24], 0
je 0x4a578a
lea ebx, [esi + 0x4000]
jmp 0x4a56d0
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x4a5d00
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
push ecx
push 1
push eax
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.00498dd0
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x4a5e5b
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004a0e40
add esp, 4
test eax, eax
jne 0x4a5d1b
test edi, edi
jne 0x4a577c
cmp dword [esp + 0x28], edi
jle 0x4a5c3c
cmp dword [esi + 0x4004], 1
jle 0x4a5877
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x4a5834
sub eax, 1
sbb ecx, edi
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x4a5772
jg 0x4a5c2a
test eax, eax
ja 0x4a5c2a
mov dword [esi + 0x401c], 2
mov dword [esi + 0x4004], 0
mov edi, dword [esp + 0x38]
push edi
call fcn.004a0e40
add esp, 4
test eax, eax
jne 0x4a5d1b
cmp dword [esp + 0x24], eax
jne 0x4a5d0e
mov ecx, dword [ebp + 0xcf4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4a57e4
push edi
call fcn.004a3240
add esp, 4
test eax, eax
jne 0x4a5e5d
cmp dword [edi + 0x2a0], eax
je 0x4a57e4
mov dword [esi + 0x4020], 1
cmp dword [esi + 0x4020], 0
je 0x4a57fa
cmp dword [ebp + 0x148], 0
jne 0x4a5d28
cmp dword [ebp + 0x148], 0
je 0x4a5d4a
cmp dword [esi + 0x401c], 2
jne 0x4a581e
mov edi, dword [esp + 0x38]
push 1
call fcn.004a5310
add esp, 4
cmp dword [ebp + 0x148], 0
je 0x4a5d4a
mov ebx, dword [esp + 0x44]
jmp 0x4a5403
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
push 1
push esi
push ecx
mov dword [esp + 0x30], 0
call fcn.004a8510
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a5c2a
push str.chunk_reading_DONE_n
push ebp
call fcn.00498f80
add esp, 8
mov dword [esi + 0x4004], 0
jmp 0x4a5c20
inc dword [ebx]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [ebx]
je 0x4a5892
inc eax
mov dword [esi + 0x400c], eax
jmp 0x4a5c2a
cmp dword [ebp + 0x584], 0
je 0x4a58ae
mov edx, dword [esi + 0x4008]
push ecx
push edx
push 1
push ebp
call fcn.00498ef0
add esp, 0x10
cmp dword [ebp + 0x730], 0
jne 0x4a58ea
cmp dword [ebp + 0x56c], 0
mov eax, 2
je 0x4a58ca
mov eax, 3
mov ecx, dword [ebx]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
call fcn.00499340
add esp, 0x10
test eax, eax
jne 0x4a5e5d
mov ecx, dword [ebx]
add dword [ebp + 0xd0c], ecx
mov edx, dword [ebx]
add dword [ebp + 0xa0], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x4a5b4b
cmp cl, 0xa
je 0x4a5b4b
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.0049bbd0
add esp, 0xc
test eax, eax
je 0x4a5941
mov eax, dword [ebp + 0xf8]
cmp eax, 0x191
je 0x4a5968
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.0049bbd0
add esp, 0xc
test eax, eax
je 0x4a59b5
mov eax, dword [ebp + 0xf8]
cmp eax, 0x197
jne 0x4a59b5
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.004a2010
mov edi, eax
add esp, 4
test edi, edi
je 0x4a5c93
mov edx, dword [esp + 0x38]
push edi
push ebx
push edx
call fcn.004a2730
push edi
mov ebx, eax
call dword [0x4f5154]
add esp, 0x10
test ebx, ebx
je 0x4a5b2e
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
mov eax, dword [esi + 0x4008]
push 0xf
push eax
push str.Content_Length:
call fcn.0049bbd0
add esp, 0xc
test eax, eax
je 0x4a5a21
mov ecx, dword [ebp + 0xf8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4a59ff
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebp
call fcn.00498f80
add esp, 0xc
jmp 0x4a5b2e
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.004a7b00
add esp, 0x10
jmp 0x4a5b2e
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.004a2e00
add esp, 0xc
test eax, eax
je 0x4a5a4d
mov dword [esi + 0x4020], 1
jmp 0x4a5b2e
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.0049bbd0
add esp, 0xc
test eax, eax
je 0x4a5ad8
mov ecx, dword [ebp + 0xf8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4a5a97
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebp
call fcn.00498f80
add esp, 0xc
jmp 0x4a5b2e
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.004a2e00
add esp, 0xc
test eax, eax
je 0x4a5b2e
push str.CONNECT_responded_chunked_n
push ebp
call fcn.00498f80
mov edx, dword [esp + 0x40]
push edx
mov dword [esi + 0x4018], 1
call fcn.004a8500
add esp, 0xc
jmp 0x4a5b2e
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.004a2e00
add esp, 0xc
test eax, eax
je 0x4a5b01
mov dword [esi + 0x4020], 1
jmp 0x4a5b2e
mov edx, dword [esi + 0x4008]
lea edi, [ebp + 0xf8]
push edi
lea ecx, [esp + 0x34]
push ecx
push str.HTTP_1._d__d
push edx
call fcn.004abee4
add esp, 0x10
cmp eax, 2
jne 0x4a5b2e
mov eax, dword [edi]
mov dword [ebp + 0xcf4], eax
lea ebx, [esi + 0x4000]
mov dword [ebx], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x4a5c2a
mov dword [esi + 0x400c], esi
cmp dword [ebp + 0xf8], 0x197
jne 0x4a5c08
cmp dword [ebp + 0xa78], 0
jne 0x4a5c08
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x4004], 2
je 0x4a5b9c
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push ebp
call fcn.00498f80
add esp, 0x10
jmp 0x4a5c12
cmp dword [esi + 0x4018], 0
je 0x4a5c08
push str.Ignore_chunked_response_body_n
push ebp
call fcn.00498f80
mov dword [ebp + 0x13c], 1
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x4a5bcf
mov dword [esi + 0x4008], eax
mov ecx, dword [esi + 0x4008]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x28]
push eax
push 1
inc ecx
push ecx
push edx
call fcn.004a8510
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a5c12
push str.chunk_reading_DONE_n
push ebp
call fcn.00498f80
add esp, 8
mov dword [esi + 0x401c], 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x4a5c2a
mov dword [esi + 0x401c], 2
cmp dword [esi + 0x4004], 0
jne 0x4a56d0
jmp 0x4a5786
cmp dword [ebp + 0x190], 0
je 0x4a5c6f
cmp dword [ebp + 0xa68], 0
je 0x4a5c6f
mov ecx, dword [esp + 0x38]
push str.Proxy_CONNECT_connection_closed_n
push ebp
mov dword [ecx + 0x304], 1
call fcn.00498f80
add esp, 8
jmp 0x4a577c
push str.Proxy_CONNECT_aborted
push ebp
mov dword [esp + 0x2c], 1
call fcn.00499010
add esp, 8
jmp 0x4a577c
push edi
call fcn.004a2b00
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004a2b00
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x24
ret
push edi
call dword [0x4f5154]
mov edx, dword [esp + 0x18]
push edx
call fcn.004a2b00
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x24
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.00499010
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x24
ret
push str.CONNECT_response_too_large_
push ebp
call fcn.00499010
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x24
ret
mov ebx, dword [esp + 0x3c]
mov eax, dword [edi + ebx*4 + 0x1a8]
push eax
push edi
call fcn.0049b960
add esp, 8
mov dword [edi + ebx*4 + 0x1a8], 0xffffffff
jmp 0x4a5d4e
mov ebx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xcf4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x4a5e11
cmp dword [esi + 0x4020], 0
je 0x4a5da1
cmp dword [ebp + 0x148], 0
je 0x4a5da1
push str.Connect_me_again_please_n
push ebp
mov dword [edi + 0x304], 1
call fcn.00498f80
add esp, 8
mov eax, edi
call fcn.004a5390
jmp 0x4a5ddc
mov edx, dword [ebp + 0x148]
push edx
call dword [0x4f5154]
push 2
push edi
mov dword [ebp + 0x148], 0
call fcn.0049b9e0
mov eax, dword [edi + ebx*4 + 0x1a8]
push eax
push edi
call fcn.0049b960
add esp, 0x14
mov dword [edi + ebx*4 + 0x1a8], 0xffffffff
mov dword [esi + 0x401c], 0
cmp dword [edi + 0x304], 0
jne 0x4a5e5b
mov ecx, dword [ebp + 0xf8]
push ecx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.00499010
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x24
ret
mov dword [esi + 0x401c], 2
mov edx, dword [edi + 0x364]
push edx
call dword [0x4f5154]
xor esi, esi
mov dword [edi + 0x364], esi
mov eax, dword [ebp + 0xcf4]
push eax
push str.Proxy_replied__d_to_CONNECT_request_n
push ebp
mov dword [ebp + 0xa6c], 1
call fcn.00498f80
mov dword [ebp + 0x13c], esi
add esp, 0x10
mov dword [edi + 0x2e8], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret