Function at 0x48fb30
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + eax*4 + 0x1b8]
mov ebx, dword [edi]
mov esi, dword [edi + 0x588]
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], ecx
call fcn.0048fa10
add esp, 4
test eax, eax
jne 0x4905f2
and dword [edi + 0x2a4], 0xff7fffff
cmp dword [esi + 0x4018], 0
jne 0x48fdea
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push edi
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebx
call fcn.0046f260
mov eax, dword [ebx + 0x150]
push eax
call dword [0x4f7cdc]
add esp, 0x14
mov dword [ebx + 0x150], 0
call fcn.00488800
mov dword [ebp - 4], eax
test eax, eax
je 0x49041e
mov ecx, dword [ebp + 0x10]
push edi
push ecx
push str._s:_d
call fcn.00470e90
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x490412
push 1
mov edx, eax
mov eax, dword [ebp + 8]
push edx
push str.CONNECT
push eax
call fcn.00488320
mov ecx, dword [ebp - 8]
push ecx
mov edi, eax
call dword [0x4f7cdc]
add esp, 0x14
test edi, edi
jne 0x48fdc3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xf0], 1
mov eax, 0x4e8539
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x4da964
je 0x48fc2c
mov dword [ebp - 0x14], 0x4da968
mov eax, dword [ecx + 0x2a4]
mov edi, dword [ebp + 0x10]
shr eax, 9
and eax, 1
cmp edi, dword [ecx + 0x9c]
je 0x48fc54
push 0x3a
push edi
call fcn.004ac2e0
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x48fc64
mov ecx, 0x4e9f40
mov eax, str.___:
jmp 0x48fc6b
mov ecx, 0x4e8539
mov eax, ecx
mov edx, dword [ebp + 0x14]
push edx
push ecx
push edi
push eax
push str._s_s_s:_d
call fcn.00470e90
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x18], edi
test edi, edi
je 0x49042a
mov eax, dword [ebp + 8]
push str.Host
push eax
call fcn.00487bc0
add esp, 8
test eax, eax
jne 0x48fcba
push edi
push str.Host:__s_r_n
call fcn.00470e90
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x490442
mov edi, dword [ebp + 8]
push str.Proxy_Connection
push edi
call fcn.00487bc0
add esp, 8
test eax, eax
jne 0x48fcd6
mov dword [ebp - 0xc], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push edi
call fcn.00487bc0
add esp, 8
test eax, eax
jne 0x48fcf9
cmp dword [ebx + 0x9d4], eax
je 0x48fcf9
mov ecx, dword [edi + 0x2f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x2f4]
test ecx, ecx
jne 0x48fd08
mov ecx, 0x4e8539
mov eax, dword [ebp - 8]
test eax, eax
jne 0x48fd14
mov eax, 0x4e8539
mov edx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x10]
push edx
push ecx
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 4]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push edx
call fcn.00489390
add esp, 0x20
cmp dword [ebp - 8], 0
mov edi, eax
je 0x48fd4c
mov eax, dword [ebp - 8]
push eax
call dword [0x4f7cdc]
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x4f7cdc]
add esp, 4
test edi, edi
jne 0x48fdaa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
call fcn.00489620
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x48fdaa
lea ecx, [ebp - 4]
push 0x4ea09c
push ecx
call fcn.00489390
mov edi, eax
add esp, 8
test edi, edi
jne 0x48fdaa
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
lea eax, [ebx + 0xfd0]
push eax
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00488840
add esp, 0x14
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x48fdc3
push str.Failed_sending_CONNECT_to_proxy
push ebx
call fcn.0046f330
add esp, 8
lea eax, [ebp - 4]
push eax
call fcn.00488810
add esp, 4
test edi, edi
jne 0x490461
mov dword [esi + 0x4000], edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x4018], 1
push 1
push 0
push ebx
call fcn.00476020
add esp, 0xc
test edx, edx
jl 0x49046a
jg 0x48fe09
test eax, eax
je 0x49046a
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.00476e70
add esp, 8
test eax, eax
je 0x4905f2
cmp dword [esi + 0x4004], 0
mov dword [ebp - 0x18], 0
je 0x48feec
mov eax, dword [esi + 0x400c]
lea ecx, [esi + 0x4000]
cmp eax, ecx
jae 0x490484
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
push 1
push eax
mov eax, dword [ebp - 0x20]
push eax
push ecx
call fcn.0046f160
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x4905f2
mov edx, dword [ebp + 8]
push edx
call fcn.004927f0
add esp, 4
test eax, eax
jne 0x49049e
test edi, edi
jne 0x48fedf
cmp dword [ebp - 0x1c], edi
jle 0x4903c6
cmp dword [esi + 0x4004], 1
jle 0x48ffd6
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x48ff8c
sub eax, 1
sbb ecx, edi
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x48fed5
jg 0x4903b4
test eax, eax
ja 0x4903b4
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov edi, dword [ebp + 8]
push edi
call fcn.004927f0
add esp, 4
test eax, eax
jne 0x49049e
cmp dword [ebp - 0x18], eax
jne 0x490492
mov eax, 0x51eb851f
imul dword [ebx + 0xfb4]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x48ff41
push edi
call fcn.00489150
add esp, 4
test eax, eax
jne 0x4905f4
test byte [edi + 0x2a4], 1
je 0x48ff41
or dword [esi + 0x401c], 2
test byte [esi + 0x401c], 2
je 0x48ff57
cmp dword [ebx + 0x150], 0
jne 0x4904aa
cmp dword [ebx + 0x150], 0
je 0x4904cc
cmp dword [esi + 0x4018], 2
jne 0x48ff7a
mov edi, dword [ebp + 8]
push 1
call fcn.0048fa70
add esp, 4
cmp dword [ebx + 0x150], 0
jne 0x48fb73
jmp 0x4904cc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 1
push esi
push ecx
mov dword [ebp - 0x14], 0
call fcn.0049a470
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4903b4
push str.chunk_reading_DONE_n
push ebx
call fcn.0046f260
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
jmp 0x4903b4
inc dword [esi + 0x4000]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [esi + 0x4000]
je 0x48fff9
inc eax
mov dword [esi + 0x400c], eax
jmp 0x4903b4
test dword [ebx + 0xa9c], 0x40000000
je 0x490018
mov edx, dword [esi + 0x4008]
push ecx
push edx
push 1
push ebx
call fcn.0046f1d0
add esp, 0x10
test dword [ebx + 0xaa0], 0x40000
jne 0x49005d
test dword [ebx + 0xa9c], 0x2000000
mov eax, 2
je 0x49003a
mov eax, 3
mov ecx, dword [esi + 0x4000]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0046f780
add esp, 0x10
test eax, eax
jne 0x4905f4
mov eax, dword [esi + 0x4000]
cdq
add dword [ebx + 0xfc8], eax
adc dword [ebx + 0xfcc], edx
mov eax, dword [esi + 0x4000]
cdq
add dword [ebx + 0xb8], eax
adc dword [ebx + 0xbc], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x4902d7
cmp cl, 0xa
je 0x4902d7
mov ecx, dword [esi + 0x4000]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.0046ea80
add esp, 0xc
test eax, eax
je 0x4900ce
mov eax, dword [ebx + 0x110]
cmp eax, 0x191
je 0x4900f5
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.0046ea80
add esp, 0xc
test eax, eax
je 0x49014a
mov eax, dword [ebx + 0x110]
cmp eax, 0x197
jne 0x49014a
mov edx, dword [esi + 0x4008]
xor ecx, ecx
cmp eax, 0x197
sete cl
push edx
mov dword [ebp - 0x14], ecx
call fcn.00487c40
mov edi, eax
add esp, 4
test edi, edi
je 0x49041e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push edi
push eax
push ecx
call fcn.00488440
push edi
mov dword [ebp - 0x14], eax
call dword [0x4f7cdc]
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x4902bc
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x4008]
push 0xf
push edx
push str.Content_Length:
call fcn.0046ea80
add esp, 0xc
test eax, eax
je 0x4901b6
mov ecx, dword [ebx + 0x110]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x490194
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebx
call fcn.0046f260
add esp, 0xc
jmp 0x4902bc
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.00499e60
add esp, 0x10
jmp 0x4902bc
mov eax, dword [esi + 0x4008]
push 0x4db150
push str.Connection:
push eax
call fcn.00488b30
add esp, 0xc
test eax, eax
je 0x4901df
or dword [esi + 0x401c], 2
jmp 0x4902bc
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.0046ea80
add esp, 0xc
test eax, eax
je 0x49026a
mov ecx, dword [ebx + 0x110]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x490229
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebx
call fcn.0046f260
add esp, 0xc
jmp 0x4902bc
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.00488b30
add esp, 0xc
test eax, eax
je 0x4902bc
push str.CONNECT_responded_chunked_n
push ebx
call fcn.0046f260
mov edx, dword [ebp + 8]
or dword [esi + 0x401c], 1
push edx
call fcn.0049a450
add esp, 0xc
jmp 0x4902bc
mov eax, dword [esi + 0x4008]
push 0x4db150
push str.Proxy_Connection:
push eax
call fcn.00488b30
add esp, 0xc
test eax, eax
je 0x490290
or dword [esi + 0x401c], 2
jmp 0x4902bc
mov edx, dword [esi + 0x4008]
lea edi, [ebx + 0x110]
push edi
lea ecx, [ebp - 0x24]
push ecx
push str.HTTP_1._d__d
push edx
call fcn.004ac2aa
add esp, 0x10
cmp eax, 2
jne 0x4902bc
mov eax, dword [edi]
mov dword [ebx + 0xfb4], eax
mov dword [esi + 0x4000], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x4903b4
mov dword [esi + 0x400c], esi
cmp dword [ebx + 0x110], 0x197
jne 0x490391
test byte [ebx + 0xf84], 0x20
jne 0x490391
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov edi, 2
mov dword [esi + 0x4004], edi
je 0x49032c
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push ebx
call fcn.0046f260
add esp, 0x10
jmp 0x4903a0
test byte [esi + 0x401c], 1
je 0x490396
push str.Ignore_chunked_response_body_n
push ebx
call fcn.0046f260
or dword [ebx + 0x598], 8
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x49035c
mov dword [esi + 0x4008], eax
mov ecx, dword [esi + 0x4008]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push 1
inc ecx
push ecx
push edx
call fcn.0049a470
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4903a0
push str.chunk_reading_DONE_n
push ebx
call fcn.0046f260
add esp, 8
mov dword [esi + 0x4018], edi
jmp 0x490396
mov edi, 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x4903b4
mov dword [esi + 0x4018], edi
cmp dword [esi + 0x4004], 0
jne 0x48fe32
jmp 0x48fee9
cmp dword [ebx + 0x5c8], 0
je 0x4903f8
cmp dword [ebx + 0xd00], 0
je 0x4903f8
mov eax, dword [ebp + 8]
or dword [eax + 0x2a4], 0x800000
push str.Proxy_CONNECT_connection_closed_n
push ebx
call fcn.0046f260
add esp, 8
jmp 0x48fedf
push str.Proxy_CONNECT_aborted
push ebx
mov dword [ebp - 0x18], 1
call fcn.0046f330
add esp, 8
jmp 0x48fedf
lea edx, [ebp - 4]
push edx
call fcn.00488810
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
call fcn.00488810
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x4f7cdc]
lea ecx, [ebp - 4]
push ecx
call fcn.00488810
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.0046f330
add esp, 8
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push ebx
call fcn.0046f330
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + edx*4 + 0x1b8]
push eax
push edi
call fcn.00476c70
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [edi + ecx*4 + 0x1b8], 0xffffffff
mov eax, 0x51eb851f
imul dword [ebx + 0xfb4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x490599
test byte [esi + 0x401c], 2
je 0x49051d
cmp dword [ebx + 0x150], 0
je 0x49051d
or dword [edi + 0x2a4], 0x800000
push str.Connect_me_again_please_n
push ebx
call fcn.0046f260
add esp, 8
mov eax, edi
call fcn.0048fb00
jmp 0x49055e
mov ecx, dword [ebx + 0x150]
push ecx
call dword [0x4f7cdc]
push 2
push edi
mov dword [ebx + 0x150], 0
call fcn.00476e10
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + edx*4 + 0x1b8]
push eax
push edi
call fcn.00476c70
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov dword [edi + ecx*4 + 0x1b8], 0xffffffff
mov dword [esi + 0x4018], 0
test dword [edi + 0x2a4], 0x800000
jne 0x4905f2
mov edx, dword [ebx + 0x110]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.0046f330
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x4018], 2
mov eax, dword [edi + 0x2f4]
push eax
call dword [0x4f7cdc]
mov dword [edi + 0x2f4], 0
mov ecx, dword [ebx + 0xd04]
mov edx, dword [ebx + 0xfb4]
push edx
and ecx, 0xfffffffd
or ecx, 1
push str.Proxy_replied__d_to_CONNECT_request_n
push ebx
mov dword [ebx + 0xd04], ecx
call fcn.0046f260
and dword [ebx + 0x598], 0xfffffff7
add esp, 0x10
and dword [edi + 0x2a4], 0xfffeffff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret