Function at 0xd6d9b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, edx
mov edx, str.WWW_Authenticate:
push 0x11
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd6d9e1
mov eax, dword [edi + 0xe0]
mov dword [ebp - 4], eax
cmp eax, 0x191
je 0xd6da06
push 0x13
mov edx, str.Proxy_authenticate:
mov ecx, esi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd6da4f
mov eax, dword [edi + 0xe0]
mov dword [ebp - 4], eax
cmp eax, 0x197
jne 0xd6da4f
mov ecx, esi
call fcn.00d453b0
mov esi, eax
test esi, esi
jne 0xd6da1d
lea eax, [esi + 0x1b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0x197
mov ecx, edi
push esi
sete dl
call fcn.00d45de0
add esp, 4
mov edi, eax
push esi
call dword [0xddeddc]
add esp, 4
test edi, edi
je 0xd6dbfe
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
mov edx, str.Content_Length:
mov ecx, esi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd6daae
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xd6da8d
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00d391b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xf]
add eax, 0x208
xor edx, edx
push eax
push 0xa
call fcn.00d4f6e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.close
push 0xb
mov edx, str.Connection:
mov ecx, esi
call fcn.00d464c0
add esp, 0xc
test al, al
jne 0xd6dbf4
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, esi
call fcn.00d3c050
add esp, 4
test eax, eax
je 0xd6db54
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xd6db0c
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.00d391b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
push str.chunked
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, esi
call fcn.00d464c0
add esp, 0xc
test al, al
je 0xd6dbfe
push str.CONNECT_responded_chunked
push edi
call fcn.00d391b0
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, edi
mov byte [eax + 0x214], 1
call fcn.00d659f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push str.close
push 0x11
mov edx, str.Proxy_Connection:
mov ecx, esi
call fcn.00d464c0
add esp, 0xc
test al, al
jne 0xd6dbf4
push 7
push str.HTTP_1.
push esi
call fcn.00d856f0
add esp, 0xc
test eax, eax
jne 0xd6dbfe
mov al, byte [esi + 7]
cmp al, 0x30
je 0xd6db93
cmp al, 0x31
jne 0xd6dbfe
cmp byte [esi + 8], 0x20
jne 0xd6dbfe
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0xd6dbfe
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0xd6dbfe
mov bl, byte [esi + 0xb]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0xd6dbfe
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0xd6dbc5
cmp al, 0x39
jle 0xd6dbfe
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe0], eax
mov dword [edi + 0xd6c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov byte [eax + 0x215], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret