Function at 0x1003be50
Capabilities:
Check http status code

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + eax*4 + 0x1a8]
mov ebp, dword [edi]
mov esi, dword [edi + 0x44c]
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], ecx
call fcn.1003bd60
add esp, 4
test eax, eax
jne 0x1003c91a
and dword [edi + 0x280], 0xff7fffff
lea esp, [esp]
cmp dword [esi + 0x4018], 0
jne 0x1003c118
mov edi, dword [esp + 0x3c]
push ebx
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.1001bdc0
mov edx, dword [ebp + 0x148]
push edx
call dword [0x10076004]
add esp, 0x14
mov dword [ebp + 0x148], 0
call fcn.10034910
mov dword [esp + 0x10], eax
test eax, eax
je 0x1003c74b
push ebx
push edi
push str._s:_d
call fcn.10024380
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1003c73e
mov eax, dword [esp + 0x34]
push 1
push ebx
push str.CONNECT
push eax
call fcn.10034500
push ebx
mov edi, eax
call dword [0x10076004]
add esp, 0x14
test edi, edi
jne 0x1003c0ef
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x34]
cmp dword [edi + 0xf0], 1
mov eax, 0x10072ef8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x1006cb00
je 0x1003bf56
mov dword [esp + 0x20], 0x1006cb04
mov eax, dword [edi + 0x280]
mov ebx, dword [esp + 0x3c]
shr eax, 9
and eax, 1
cmp ebx, dword [edi + 0x9c]
je 0x1003bf7f
push 0x3a
push ebx
call fcn.1004e890
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x1003bf8f
mov ecx, 0x1006875c
mov eax, 0x10068758
jmp 0x1003bf96
mov ecx, 0x10072ef8
mov eax, ecx
mov edx, dword [esp + 0x40]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_d
call fcn.10024380
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1003c758
push str.Host
push edi
call fcn.10033eb0
add esp, 8
test eax, eax
jne 0x1003bfe1
push ebx
push str.Host:__s_r_n
call fcn.10024380
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x1003c772
push str.Proxy_Connection
push edi
call fcn.10033eb0
add esp, 8
test eax, eax
jne 0x1003bffb
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push edi
call fcn.10033eb0
add esp, 8
test eax, eax
jne 0x1003c01f
cmp dword [ebp + 0x9c4], eax
je 0x1003c01f
mov eax, dword [edi + 0x2d8]
mov dword [esp + 0x1c], eax
mov edi, dword [edi + 0x2d4]
mov ecx, edi
test edi, edi
jne 0x1003c030
mov ecx, 0x10072ef8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1003c03d
mov eax, 0x10072ef8
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x28]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.100354a0
add esp, 0x20
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x1003c078
mov edx, dword [esp + 0x14]
push edx
call dword [0x10076004]
add esp, 4
push ebx
call dword [0x10076004]
add esp, 4
test edi, edi
jne 0x1003c0d5
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push eax
push 1
push ebx
call fcn.10035730
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003c0d5
lea ecx, [esp + 0x10]
push 0x10068f74
push ecx
call fcn.100354a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003c0d5
mov edx, dword [esp + 0x38]
push edx
push eax
lea eax, [ebp + 0xfb8]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.10034950
add esp, 0x14
mov edi, eax
mov dword [esp + 0x10], 0
test edi, edi
je 0x1003c0ef
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.1001bea0
add esp, 8
lea edx, [esp + 0x10]
push edx
call fcn.10034920
add esp, 4
test edi, edi
jne 0x1003c793
mov dword [esi + 0x4000], edi
mov edi, dword [esp + 0x34]
mov dword [esi + 0x4018], 1
push 1
push 0
push ebp
call fcn.100219d0
add esp, 0xc
test edx, edx
jl 0x1003c79d
jg 0x1003c137
test eax, eax
jbe 0x1003c79d
mov eax, dword [esp + 0x38]
push eax
push edi
call fcn.10022740
add esp, 8
test eax, eax
je 0x1003c91a
cmp dword [esi + 0x4004], 0
mov dword [esp + 0x20], 0
je 0x1003c22a
lea ebx, [esi + 0x4000]
jmp 0x1003c170
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x1003c7b8
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call fcn.1001bc00
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x1003c91a
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1003dd20
add esp, 4
test eax, eax
jne 0x1003c7d3
test edi, edi
jne 0x1003c21c
cmp dword [esp + 0x24], edi
jle 0x1003c6f0
cmp dword [esi + 0x4004], 1
jle 0x1003c320
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x1003c2d3
sub eax, 1
sbb ecx, edi
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x1003c212
jg 0x1003c6de
test eax, eax
ja 0x1003c6de
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov edi, dword [esp + 0x34]
push edi
call fcn.1003dd20
add esp, 4
test eax, eax
jne 0x1003c7d3
cmp dword [esp + 0x20], eax
jne 0x1003c7c6
mov ecx, dword [ebp + 0xf9c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov ebx, 2
cmp ecx, ebx
je 0x1003c285
push edi
call fcn.10035270
add esp, 4
test eax, eax
jne 0x1003c91c
test byte [edi + 0x280], 1
je 0x1003c285
or dword [esi + 0x401c], ebx
test byte [esi + 0x401c], bl
je 0x1003c29a
cmp dword [ebp + 0x148], 0
jne 0x1003c7e0
cmp dword [ebp + 0x148], 0
je 0x1003c802
cmp dword [esi + 0x4018], ebx
jne 0x1003c2bd
mov edi, dword [esp + 0x34]
push 1
call fcn.1003bda0
add esp, 4
cmp dword [ebp + 0x148], 0
je 0x1003c802
mov ebx, dword [esp + 0x40]
jmp 0x1003bea0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push ecx
mov dword [esp + 0x2c], 0
call fcn.10042490
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003c6de
push str.chunk_reading_DONE_n
push ebp
call fcn.1001bdc0
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
jmp 0x1003c6de
inc dword [ebx]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [ebx]
je 0x1003c33b
inc eax
mov dword [esi + 0x400c], eax
jmp 0x1003c6de
test dword [ebp + 0xa8c], 0x4000000
je 0x1003c35a
mov edx, dword [esi + 0x4008]
push ecx
push edx
push 1
push ebp
call fcn.1001bd30
add esp, 0x10
test dword [ebp + 0xa90], 0x40000
jne 0x1003c39c
test dword [ebp + 0xa8c], 0x200000
mov eax, 2
je 0x1003c37c
mov eax, 3
mov ecx, dword [ebx]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.1001c2f0
add esp, 0x10
test eax, eax
jne 0x1003c91c
mov eax, dword [ebx]
cdq
add dword [ebp + 0xfb0], eax
adc dword [ebp + 0xfb4], edx
mov eax, dword [ebx]
cdq
add dword [ebp + 0xb0], eax
adc dword [ebp + 0xb4], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x1003c602
cmp cl, 0xa
je 0x1003c602
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.1001b4d0
add esp, 0xc
test eax, eax
je 0x1003c401
mov eax, dword [ebp + 0x108]
cmp eax, 0x191
je 0x1003c428
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.1001b4d0
add esp, 0xc
test eax, eax
je 0x1003c475
mov eax, dword [ebp + 0x108]
cmp eax, 0x197
jne 0x1003c475
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.10033f30
mov edi, eax
add esp, 4
test edi, edi
je 0x1003c74b
mov edx, dword [esp + 0x34]
push edi
push ebx
push edx
call fcn.10034610
push edi
mov ebx, eax
call dword [0x10076004]
add esp, 0x10
test ebx, ebx
je 0x1003c5e5
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x4008]
push 0xf
push eax
push str.Content_Length:
call fcn.1001b4d0
add esp, 0xc
test eax, eax
je 0x1003c4e1
mov ecx, dword [ebp + 0x108]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x1003c4bf
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebp
call fcn.1001bdc0
add esp, 0xc
jmp 0x1003c5e5
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.10041f10
add esp, 0x10
jmp 0x1003c5e5
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.10034c80
add esp, 0xc
test eax, eax
je 0x1003c50a
or dword [esi + 0x401c], 2
jmp 0x1003c5e5
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.1001b4d0
add esp, 0xc
test eax, eax
je 0x1003c592
mov ecx, dword [ebp + 0x108]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x1003c554
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebp
call fcn.1001bdc0
add esp, 0xc
jmp 0x1003c5e5
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.10034c80
add esp, 0xc
test eax, eax
je 0x1003c5e5
push str.CONNECT_responded_chunked_n
push ebp
call fcn.1001bdc0
mov edx, dword [esp + 0x3c]
or dword [esi + 0x401c], 1
push edx
call fcn.10042480
add esp, 0xc
jmp 0x1003c5e5
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.10034c80
add esp, 0xc
test eax, eax
je 0x1003c5b8
or dword [esi + 0x401c], 2
jmp 0x1003c5e5
mov edx, dword [esi + 0x4008]
lea edi, [ebp + 0x108]
push edi
lea ecx, [esp + 0x30]
push ecx
push str.HTTP_1._d__d
push edx
call fcn.1004cd9d
add esp, 0x10
cmp eax, 2
jne 0x1003c5e5
mov eax, dword [edi]
mov dword [ebp + 0xf9c], eax
lea ebx, [esi + 0x4000]
mov dword [ebx], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x1003c6de
mov dword [esi + 0x400c], esi
cmp dword [ebp + 0x108], 0x197
jne 0x1003c6bb
test byte [ebp + 0xf6c], 0x20
jne 0x1003c6bb
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 0x1003c654
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push ebp
call fcn.1001bdc0
add esp, 0x10
jmp 0x1003c6ca
test byte [esi + 0x401c], 1
je 0x1003c6c0
push str.Ignore_chunked_response_body_n
push ebp
call fcn.1001bdc0
or dword [ebp + 0x590], 8
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x1003c684
mov dword [esi + 0x4008], eax
mov ecx, dword [esi + 0x4008]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
push 1
inc ecx
push ecx
push edx
call fcn.10042490
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003c6ca
push str.chunk_reading_DONE_n
push ebp
call fcn.1001bdc0
add esp, 8
mov dword [esi + 0x4018], edi
jmp 0x1003c6c0
mov edi, 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x1003c6de
mov dword [esi + 0x4018], edi
cmp dword [esi + 0x4004], 0
jne 0x1003c170
jmp 0x1003c226
cmp dword [ebp + 0x5c0], 0
je 0x1003c723
cmp dword [ebp + 0xd10], 0
je 0x1003c723
mov eax, dword [esp + 0x34]
or dword [eax + 0x280], 0x800000
push str.Proxy_CONNECT_connection_closed_n
push ebp
call fcn.1001bdc0
add esp, 8
jmp 0x1003c21c
push str.Proxy_CONNECT_aborted
push ebp
mov dword [esp + 0x28], 1
call fcn.1001bea0
add esp, 8
jmp 0x1003c21c
lea edx, [esp + 0x10]
push edx
call fcn.10034920
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
lea eax, [esp + 0x10]
push eax
call fcn.10034920
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
push ebx
call dword [0x10076004]
lea ecx, [esp + 0x14]
push ecx
call fcn.10034920
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.1001bea0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x20
ret
push str.CONNECT_response_too_large_
push ebp
call fcn.1001bea0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x20
ret
mov ebx, dword [esp + 0x38]
mov edx, dword [edi + ebx*4 + 0x1a8]
push edx
push edi
call fcn.10022550
add esp, 8
mov dword [edi + ebx*4 + 0x1a8], 0xffffffff
jmp 0x1003c806
mov ebx, dword [esp + 0x38]
mov ecx, dword [ebp + 0xf9c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x1003c8cc
test byte [esi + 0x401c], 2
je 0x1003c859
cmp dword [ebp + 0x148], 0
je 0x1003c859
or dword [edi + 0x280], 0x800000
push str.Connect_me_again_please_n
push ebp
call fcn.1001bdc0
add esp, 8
mov eax, edi
call fcn.1003be20
jmp 0x1003c894
mov ecx, dword [ebp + 0x148]
push ecx
call dword [0x10076004]
push 2
push edi
mov dword [ebp + 0x148], 0
call fcn.100226e0
mov edx, dword [edi + ebx*4 + 0x1a8]
push edx
push edi
call fcn.10022550
add esp, 0x14
mov dword [edi + ebx*4 + 0x1a8], 0xffffffff
mov dword [esi + 0x4018], 0
test dword [edi + 0x280], 0x800000
jne 0x1003c91a
mov eax, dword [ebp + 0x108]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.1001bea0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x20
ret
mov dword [esi + 0x4018], 2
mov ecx, dword [edi + 0x2d4]
push ecx
call dword [0x10076004]
mov dword [edi + 0x2d4], 0
mov edx, dword [ebp + 0xf9c]
or dword [ebp + 0xd14], 1
push edx
push str.Proxy_replied__d_to_CONNECT_request_n
push ebp
call fcn.1001bdc0
and dword [ebp + 0x590], 0xfffffff7
add esp, 0x10
and dword [edi + 0x280], 0xfffeffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret