Function at 0x1003e6f0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
mov esi, dword [eax]
mov dword [ebp - 0x3c], 0
movlpd qword [ebp - 0x38], xmm0
lea ecx, [edi + 0x64]
mov byte [ebp - 1], bl
lea ecx, [eax + ecx*4]
mov byte [ebp - 2], bl
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + edi*4 + 0x190]
mov dword [ebp - 0x28], ecx
lea ecx, [edi + 0x13d]
cmp dword [eax + ecx*4], 2
lea ecx, [eax + ecx*4]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
je 0x1003f0d5
mov byte [eax + 0x266], bl
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
nop word [eax + eax]
cmp dword [ecx], 0
jne 0x1003e9a6
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.100203c0
push dword [esi + 0x104]
call dword [0x10087004]
add esp, 0x14
mov dword [esi + 0x104], 0
call fcn.10025fd0
mov ebx, eax
test ebx, ebx
je 0x1003efba
push dword [ebp + 0x14]
push edi
push str._s:_hu
call fcn.100225e0
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1003efb1
push 1
push eax
push str.CONNECT
push dword [ebp + 8]
call fcn.10026b10
push dword [ebp - 0x1c]
mov edi, eax
call dword [0x10087004]
add esp, 0x14
test edi, edi
jne 0x1003e989
mov edx, dword [ebp + 8]
mov ecx, 0x1006de34
mov eax, 0x1006de38
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x1007fad0
cmp dword [edx + 0xe8], 1
cmovne eax, ecx
mov cl, byte [edx + 0x256]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x98]
je 0x1003e82a
push 0x3a
push eax
call fcn.10047990
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x1007fad0
mov eax, 0x1006d410
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x1006d414
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.100225e0
add esp, 0x14
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1003efb1
push str.Host:
push dword [ebp + 8]
call fcn.10026540
add esp, 8
test eax, eax
jne 0x1003e892
push dword [ebp - 0x1c]
push str.Host:__s_r_n
call fcn.100225e0
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1003ef93
push str.Proxy_Connection:
push dword [ebp + 8]
call fcn.10026540
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x1007fad0
push str.User_Agent:
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 8], ecx
call fcn.10026540
add esp, 0x10
test eax, eax
jne 0x1003e8d9
cmp dword [esi + 0x408], eax
je 0x1003e8d9
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2a0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov edx, 0x1007fad0
push dword [ebp - 8]
mov ecx, edx
push dword [ebp - 0x18]
mov eax, dword [eax + 0x29c]
test eax, eax
cmovne ecx, eax
mov eax, edx
push ecx
test edi, edi
cmovne eax, edi
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.100261a0
mov edi, eax
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1003e924
push eax
call dword [0x10087004]
add esp, 4
push dword [ebp - 0x1c]
call dword [0x10087004]
add esp, 4
test edi, edi
jne 0x1003e975
push ebx
push 1
push dword [ebp + 8]
call fcn.10026210
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1003e975
push 0x10081308
push ebx
call fcn.100261a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1003e975
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x47d0]
push eax
push dword [ebp + 8]
push ebx
call fcn.10025fe0
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x1003e989
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.10020310
add esp, 8
push ebx
call fcn.10025fa0
add esp, 4
test edi, edi
jne 0x1003eca1
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.100214a0
add esp, 0xc
test edx, edx
jl 0x1003f0de
jg 0x1003e9c5
test eax, eax
je 0x1003f0de
cmp byte [ebp + 0x18], 0
jne 0x1003e9df
push edi
push dword [ebp + 8]
call fcn.10020ba0
add esp, 8
test al, al
je 0x1003f0d5
mov edi, dword [esi + 0x62c]
xor eax, eax
mov ecx, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], ecx
mov ebx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
nop word [eax + eax]
test ecx, ecx
je 0x1003eafa
push dword [ebp + 8]
call fcn.1002a8f0
add esp, 4
test eax, eax
jne 0x1003efd0
mov eax, dword [esi + 0x62c]
add eax, 0x4000
cmp edi, eax
jae 0x1003efc6
push 1
push 0
push esi
call fcn.100214a0
mov edi, eax
add esp, 0xc
mov eax, edx
mov dword [ebp - 0x34], eax
test eax, eax
jl 0x1003ef22
jg 0x1003ea54
test edi, edi
je 0x1003ef22
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.10020440
add esp, 0x14
cmp eax, 0x51
jne 0x1003eaaa
mov eax, dword [ebp - 0x34]
test eax, eax
jg 0x1003ea81
jl 0x1003ea88
cmp edi, 0x3e8
jb 0x1003ea88
mov edi, 0x3e8
xor eax, eax
push eax
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x28]
call fcn.1001fc90
add esp, 0x14
cmp eax, 0xffffffff
je 0x1003eebd
mov edi, dword [ebp - 0x14]
jmp 0x1003edda
test eax, eax
jne 0x1003eafa
cmp dword [ebp - 0x2c], eax
jle 0x1003eed8
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
inc edx
mov dword [ebp - 0x18], edx
cmp ecx, 1
jle 0x1003eb9b
mov edx, dword [ebp - 0x24]
mov edi, dword [esi + 0x62c]
mov dword [ebp - 0x18], eax
mov eax, edx
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], edi
je 0x1003eb55
add edx, 0xffffffff
mov dword [ebp - 0x24], edx
adc dword [ebp - 0x20], 0xffffffff
js 0x1003eafa
jg 0x1003ea00
test edx, edx
jne 0x1003ea00
mov edi, dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.1002a8f0
add esp, 4
test eax, eax
jne 0x1003efd0
test edi, edi
jne 0x1003f084
cmp dword [esi + 0x47bc], 0xc8
je 0x1003ef3d
push dword [ebp + 8]
call fcn.100267a0
add esp, 4
test eax, eax
jne 0x1003f0f1
mov eax, dword [ebp + 8]
cmp byte [eax + 0x24d], 0
je 0x1003ef40
mov bl, 1
mov byte [ebp - 1], bl
jmp 0x1003ef47
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 1
push edi
push dword [ebp + 8]
call fcn.1003f800
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003ea00
push str.chunk_reading_DONE_n
push esi
call fcn.100203c0
add esp, 8
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [eax], 2
jmp 0x1003ea00
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp byte [edi], 0xa
je 0x1003ebb3
inc edi
mov dword [ebp - 0x14], edi
jmp 0x1003eddd
cmp byte [esi + 0x348], 0
mov edi, dword [ebp + 8]
je 0x1003ebd0
push edi
push ecx
push ebx
push 1
push esi
call fcn.10020230
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
cmp byte [esi + 0x4a8], 0
jne 0x1003ebfe
xor eax, eax
cmp byte [esi + 0x33d], al
push ecx
setne al
push ebx
add eax, 2
push eax
push edi
call fcn.10020200
add esp, 0x10
test eax, eax
jne 0x1003f0f1
mov ecx, dword [ebp - 0x1c]
add dword [esi + 0x47cc], ecx
add dword [esi + 0x80], ecx
mov al, byte [ebx]
cmp al, 0xd
je 0x1003edf1
cmp al, 0xa
je 0x1003edf1
push 0x11
push ebx
push str.WWW_Authenticate:
mov byte [ecx + ebx], 0
call fcn.10022410
add esp, 0xc
test eax, eax
je 0x1003ec42
mov edi, dword [esi + 0xc8]
cmp edi, 0x191
je 0x1003ec64
push 0x13
push ebx
push str.Proxy_authenticate:
call fcn.10022410
add esp, 0xc
test eax, eax
je 0x1003ecaa
mov edi, dword [esi + 0xc8]
cmp edi, 0x197
jne 0x1003ecaa
push ebx
call fcn.100266d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1003efba
cmp edi, 0x197
push ebx
sete al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.10026970
push ebx
mov edi, eax
call dword [0x10087004]
add esp, 0x10
test edi, edi
je 0x1003edca
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push ebx
push str.Content_Length:
call fcn.10022410
add esp, 0xc
test eax, eax
je 0x1003ecfe
mov ecx, dword [esi + 0xc8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x1003ece3
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.100203c0
add esp, 0xc
jmp 0x1003edca
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.10053996
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x1003edca
push str.close
push str.Connection:
push ebx
call fcn.10026600
add esp, 0xc
test al, al
je 0x1003ed1e
mov byte [ebp - 1], 1
jmp 0x1003edca
push 0x12
push ebx
push str.Transfer_Encoding:
call fcn.10022410
add esp, 0xc
test eax, eax
je 0x1003ed87
mov ecx, dword [esi + 0xc8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x1003ed54
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push esi
call fcn.100203c0
add esp, 0xc
jmp 0x1003edca
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.10026600
add esp, 0xc
test al, al
je 0x1003edca
push str.CONNECT_responded_chunked_n
push esi
call fcn.100203c0
push dword [ebp + 8]
mov byte [ebp - 2], 1
call fcn.1003f7e0
add esp, 0xc
jmp 0x1003edca
push str.close
push str.Proxy_Connection:
push ebx
call fcn.10026600
add esp, 0xc
test al, al
je 0x1003eda4
mov byte [ebp - 1], 1
jmp 0x1003edca
lea edi, [esi + 0xc8]
push edi
lea eax, [ebp - 0x3c]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.10016b90
add esp, 0x10
cmp eax, 2
jne 0x1003edca
mov eax, dword [edi]
mov dword [esi + 0x47bc], eax
mov edi, dword [esi + 0x62c]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ebx, edi
mov dword [ebp - 0x14], edi
mov edx, dword [ebp - 0x18]
cmp edx, 0x4000
jae 0x1003eafa
mov ecx, dword [ebp - 8]
jmp 0x1003ea00
mov edi, dword [esi + 0x62c]
xor eax, eax
cmp dword [esi + 0xc8], 0x197
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
jne 0x1003eb88
cmp byte [esi + 0x46f4], al
jne 0x1003eb88
mov edx, dword [ebp - 0x24]
mov eax, edx
mov ecx, dword [ebp - 0x20]
or eax, ecx
mov dword [ebp - 8], 2
je 0x1003ee4f
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.100203c0
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 8]
mov dword [eax], 2
jmp 0x1003ea00
cmp byte [ebp - 2], 0
je 0x1003eb88
push str.Ignore_chunked_response_body_n
push esi
call fcn.100203c0
lea eax, [ebx + 1]
mov byte [esi + 0xfd], 1
cmp byte [eax], 0xa
cmovne eax, ebx
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
call fcn.1003f800
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1003eeac
push str.chunk_reading_DONE_n
push esi
call fcn.100203c0
add esp, 8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], 2
jmp 0x1003ea00
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov edi, 1
push esi
mov dword [ebp - 0xc], edi
call fcn.10020310
add esp, 8
jmp 0x1003eafd
cmp dword [esi + 0x140], 0
je 0x1003ef07
cmp dword [esi + 0x46ec], 0
je 0x1003ef07
mov eax, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [eax + 0x266], 1
call fcn.100203c0
add esp, 8
jmp 0x1003eafa
push str.Proxy_CONNECT_aborted
mov edi, 1
push esi
mov dword [ebp - 0xc], edi
call fcn.10020310
add esp, 8
jmp 0x1003eafd
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10020310
mov edi, 2
add esp, 8
mov dword [ebp - 0xc], edi
jmp 0x1003eafd
mov eax, dword [ebp + 8]
mov bl, byte [ebp - 1]
test bl, bl
je 0x1003ef54
cmp dword [esi + 0x104], 0
jne 0x1003efdc
cmp dword [esi + 0x104], 0
mov ecx, dword [ebp - 0x10]
je 0x1003eff2
cmp dword [ecx], 2
jne 0x1003ef82
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ecx], 0
call fcn.100203c0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi + 0x104], 0
je 0x1003eff2
mov edi, dword [ebp + 0xc]
jmp 0x1003e760
push dword [ebp - 0x1c]
call dword [0x10087004]
push ebx
call fcn.10025fa0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10025fa0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
jmp 0x1003f0e3
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x30]
push dword [edi]
push eax
call fcn.10020b40
add esp, 8
mov dword [edi], 0xffffffff
jmp 0x1003eff5
mov edi, dword [ebp - 0x30]
cmp dword [esi + 0xc8], 0xc8
je 0x1003f090
test bl, bl
je 0x1003f02c
cmp dword [esi + 0x104], 0
je 0x1003f02c
mov ebx, dword [ebp + 8]
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x266], 1
call fcn.100203c0
add esp, 8
jmp 0x1003f05e
push dword [esi + 0x104]
call dword [0x10087004]
mov ebx, dword [ebp + 8]
push 2
push ebx
mov dword [esi + 0x104], 0
call fcn.10020c30
push dword [edi]
push ebx
call fcn.10020b40
add esp, 0x14
mov dword [edi], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
cmp byte [ebx + 0x266], 0
jne 0x1003f0d5
push dword [esi + 0xc8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.10020310
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov dword [eax], 2
push dword [ebx + 0x29c]
call dword [0x10087004]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x29c], 0
push esi
mov byte [esi + 0x46f0], 1
call fcn.100203c0
mov byte [esi + 0xfd], 0
add esp, 0xc
mov byte [ebx + 0x25f], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10020310
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret