Function at 0x1003bb40
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.1003ba50
add esp, 4
test eax, eax
jne 0x1003c60a
and dword [edi + 0x280], 0xff7fffff
lea esp, [esp]
cmp dword [esi + 0x4018], 0
jne 0x1003be08
mov edi, dword [esp + 0x3c]
push ebx
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ebp
call fcn.1001ba70
mov edx, dword [ebp + 0x148]
push edx
call dword [0x10075004]
add esp, 0x14
mov dword [ebp + 0x148], 0
call fcn.10034620
mov dword [esp + 0x10], eax
test eax, eax
je 0x1003c43b
push ebx
push edi
push str._s:_d
call fcn.10024060
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1003c42e
mov eax, dword [esp + 0x34]
push 1
push ebx
push str.CONNECT
push eax
call fcn.10034210
push ebx
mov edi, eax
call dword [0x10075004]
add esp, 0x14
test edi, edi
jne 0x1003bddf
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x34]
cmp dword [edi + 0xf0], 1
mov eax, 0x10071ed0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x1006bb00
je 0x1003bc46
mov dword [esp + 0x20], 0x1006bb04
mov eax, dword [edi + 0x280]
mov ebx, dword [esp + 0x3c]
shr eax, 9
and eax, 1
cmp ebx, dword [edi + 0x9c]
je 0x1003bc6f
push 0x3a
push ebx
call fcn.1004e580
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x1003bc7f
mov ecx, 0x1006775c
mov eax, 0x10067758
jmp 0x1003bc86
mov ecx, 0x10071ed0
mov eax, ecx
mov edx, dword [esp + 0x40]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_d
call fcn.10024060
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1003c448
push str.Host
push edi
call fcn.10033bc0
add esp, 8
test eax, eax
jne 0x1003bcd1
push ebx
push str.Host:__s_r_n
call fcn.10024060
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x1003c462
push str.Proxy_Connection
push edi
call fcn.10033bc0
add esp, 8
test eax, eax
jne 0x1003bceb
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push edi
call fcn.10033bc0
add esp, 8
test eax, eax
jne 0x1003bd0f
cmp dword [ebp + 0x9c4], eax
je 0x1003bd0f
mov eax, dword [edi + 0x2d8]
mov dword [esp + 0x1c], eax
mov edi, dword [edi + 0x2d4]
mov ecx, edi
test edi, edi
jne 0x1003bd20
mov ecx, 0x10071ed0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1003bd2d
mov eax, 0x10071ed0
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.10035190
add esp, 0x20
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x1003bd68
mov edx, dword [esp + 0x14]
push edx
call dword [0x10075004]
add esp, 4
push ebx
call dword [0x10075004]
add esp, 4
test edi, edi
jne 0x1003bdc5
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push eax
push 1
push ebx
call fcn.10035420
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003bdc5
lea ecx, [esp + 0x10]
push 0x10067f74
push ecx
call fcn.10035190
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003bdc5
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.10034660
add esp, 0x14
mov edi, eax
mov dword [esp + 0x10], 0
test edi, edi
je 0x1003bddf
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.1001bb50
add esp, 8
lea edx, [esp + 0x10]
push edx
call fcn.10034630
add esp, 4
test edi, edi
jne 0x1003c483
mov dword [esi + 0x4000], edi
mov edi, dword [esp + 0x34]
mov dword [esi + 0x4018], 1
push 1
push 0
push ebp
call fcn.100216a0
add esp, 0xc
test edx, edx
jl 0x1003c48d
jg 0x1003be27
test eax, eax
jbe 0x1003c48d
mov eax, dword [esp + 0x38]
push eax
push edi
call fcn.10022410
add esp, 8
test eax, eax
je 0x1003c60a
cmp dword [esi + 0x4004], 0
mov dword [esp + 0x20], 0
je 0x1003bf1a
lea ebx, [esi + 0x4000]
jmp 0x1003be60
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x1003c4a8
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.1001b8b0
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x1003c60a
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1003da00
add esp, 4
test eax, eax
jne 0x1003c4c3
test edi, edi
jne 0x1003bf0c
cmp dword [esp + 0x24], edi
jle 0x1003c3e0
cmp dword [esi + 0x4004], 1
jle 0x1003c010
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x1003bfc3
sub eax, 1
sbb ecx, edi
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x1003bf02
jg 0x1003c3ce
test eax, eax
ja 0x1003c3ce
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov edi, dword [esp + 0x34]
push edi
call fcn.1003da00
add esp, 4
test eax, eax
jne 0x1003c4c3
cmp dword [esp + 0x20], eax
jne 0x1003c4b6
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 0x1003bf75
push edi
call fcn.10034f60
add esp, 4
test eax, eax
jne 0x1003c60c
test byte [edi + 0x280], 1
je 0x1003bf75
or dword [esi + 0x401c], ebx
test byte [esi + 0x401c], bl
je 0x1003bf8a
cmp dword [ebp + 0x148], 0
jne 0x1003c4d0
cmp dword [ebp + 0x148], 0
je 0x1003c4f2
cmp dword [esi + 0x4018], ebx
jne 0x1003bfad
mov edi, dword [esp + 0x34]
push 1
call fcn.1003ba90
add esp, 4
cmp dword [ebp + 0x148], 0
je 0x1003c4f2
mov ebx, dword [esp + 0x40]
jmp 0x1003bb90
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push ecx
mov dword [esp + 0x2c], 0
call fcn.10042170
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003c3ce
push str.chunk_reading_DONE_n
push ebp
call fcn.1001ba70
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
jmp 0x1003c3ce
inc dword [ebx]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [ebx]
je 0x1003c02b
inc eax
mov dword [esi + 0x400c], eax
jmp 0x1003c3ce
test dword [ebp + 0xa8c], 0x4000000
je 0x1003c04a
mov edx, dword [esi + 0x4008]
push ecx
push edx
push 1
push ebp
call fcn.1001b9e0
add esp, 0x10
test dword [ebp + 0xa90], 0x40000
jne 0x1003c08c
test dword [ebp + 0xa8c], 0x200000
mov eax, 2
je 0x1003c06c
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.1001bfa0
add esp, 0x10
test eax, eax
jne 0x1003c60c
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 0x1003c2f2
cmp cl, 0xa
je 0x1003c2f2
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.1001b190
add esp, 0xc
test eax, eax
je 0x1003c0f1
mov eax, dword [ebp + 0x108]
cmp eax, 0x191
je 0x1003c118
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.1001b190
add esp, 0xc
test eax, eax
je 0x1003c165
mov eax, dword [ebp + 0x108]
cmp eax, 0x197
jne 0x1003c165
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.10033c40
mov edi, eax
add esp, 4
test edi, edi
je 0x1003c43b
mov edx, dword [esp + 0x34]
push edi
push ebx
push edx
call fcn.10034320
push edi
mov ebx, eax
call dword [0x10075004]
add esp, 0x10
test ebx, ebx
je 0x1003c2d5
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.1001b190
add esp, 0xc
test eax, eax
je 0x1003c1d1
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 0x1003c1af
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebp
call fcn.1001ba70
add esp, 0xc
jmp 0x1003c2d5
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.10041bf0
add esp, 0x10
jmp 0x1003c2d5
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.10034990
add esp, 0xc
test eax, eax
je 0x1003c1fa
or dword [esi + 0x401c], 2
jmp 0x1003c2d5
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.1001b190
add esp, 0xc
test eax, eax
je 0x1003c282
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 0x1003c244
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebp
call fcn.1001ba70
add esp, 0xc
jmp 0x1003c2d5
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.10034990
add esp, 0xc
test eax, eax
je 0x1003c2d5
push str.CONNECT_responded_chunked_n
push ebp
call fcn.1001ba70
mov edx, dword [esp + 0x3c]
or dword [esi + 0x401c], 1
push edx
call fcn.10042160
add esp, 0xc
jmp 0x1003c2d5
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.10034990
add esp, 0xc
test eax, eax
je 0x1003c2a8
or dword [esi + 0x401c], 2
jmp 0x1003c2d5
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.1004ca8d
add esp, 0x10
cmp eax, 2
jne 0x1003c2d5
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 0x1003c3ce
mov dword [esi + 0x400c], esi
cmp dword [ebp + 0x108], 0x197
jne 0x1003c3ab
test byte [ebp + 0xf6c], 0x20
jne 0x1003c3ab
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 0x1003c344
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push ebp
call fcn.1001ba70
add esp, 0x10
jmp 0x1003c3ba
test byte [esi + 0x401c], 1
je 0x1003c3b0
push str.Ignore_chunked_response_body_n
push ebp
call fcn.1001ba70
or dword [ebp + 0x590], 8
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x1003c374
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.10042170
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003c3ba
push str.chunk_reading_DONE_n
push ebp
call fcn.1001ba70
add esp, 8
mov dword [esi + 0x4018], edi
jmp 0x1003c3b0
mov edi, 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x1003c3ce
mov dword [esi + 0x4018], edi
cmp dword [esi + 0x4004], 0
jne 0x1003be60
jmp 0x1003bf16
cmp dword [ebp + 0x5c0], 0
je 0x1003c413
cmp dword [ebp + 0xd10], 0
je 0x1003c413
mov eax, dword [esp + 0x34]
or dword [eax + 0x280], 0x800000
push str.Proxy_CONNECT_connection_closed_n
push ebp
call fcn.1001ba70
add esp, 8
jmp 0x1003bf0c
push str.Proxy_CONNECT_aborted
push ebp
mov dword [esp + 0x28], 1
call fcn.1001bb50
add esp, 8
jmp 0x1003bf0c
lea edx, [esp + 0x10]
push edx
call fcn.10034630
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.10034630
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
push ebx
call dword [0x10075004]
lea ecx, [esp + 0x14]
push ecx
call fcn.10034630
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.1001bb50
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.1001bb50
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.10022220
add esp, 8
mov dword [edi + ebx*4 + 0x1a8], 0xffffffff
jmp 0x1003c4f6
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 0x1003c5bc
test byte [esi + 0x401c], 2
je 0x1003c549
cmp dword [ebp + 0x148], 0
je 0x1003c549
or dword [edi + 0x280], 0x800000
push str.Connect_me_again_please_n
push ebp
call fcn.1001ba70
add esp, 8
mov eax, edi
call fcn.1003bb10
jmp 0x1003c584
mov ecx, dword [ebp + 0x148]
push ecx
call dword [0x10075004]
push 2
push edi
mov dword [ebp + 0x148], 0
call fcn.100223b0
mov edx, dword [edi + ebx*4 + 0x1a8]
push edx
push edi
call fcn.10022220
add esp, 0x14
mov dword [edi + ebx*4 + 0x1a8], 0xffffffff
mov dword [esi + 0x4018], 0
test dword [edi + 0x280], 0x800000
jne 0x1003c60a
mov eax, dword [ebp + 0x108]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.1001bb50
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 [0x10075004]
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.1001ba70
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