Function at 0x10016cb0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ecx + 0x64]
mov dword [ebp - 0x40], 0
mov esi, dword [ebx]
lea eax, [ebx + eax*4]
lea edi, [ecx + 0x1a4]
mov dword [ebp - 0x2c], eax
cmp dword [ebx + edi*4], 2
lea edi, [ebx + edi*4]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
movlpd qword [ebp - 0x3c], xmm0
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], edi
je 0x10017680
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov byte [ebx + 0x37e], 0
mov dword [ebp - 0x1c], eax
cmp dword [edi], 0
jne 0x10016f52
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.100245d0
push dword [esi + 0x104]
call dword [0x1004e00c]
add esp, 0x14
mov dword [esi + 0x104], 0
call fcn.100139d0
mov ebx, eax
test ebx, ebx
je 0x100175b7
push dword [ebp + 0x14]
push edi
push str._s:_hu
call sym.libcurl.dll_curl_maprintf
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100175ae
push 1
push eax
push str.CONNECT
push dword [ebp + 8]
call fcn.100145d0
push dword [ebp - 0x24]
mov edi, eax
call dword [0x1004e00c]
add esp, 0x14
test edi, edi
jne 0x10016f35
mov edx, dword [ebp + 8]
mov ecx, 0x100433b0
mov eax, 0x100433b4
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x100418ca
cmp dword [edx + 0xe8], 1
cmovne eax, ecx
mov cl, byte [edx + 0x36e]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x98]
je 0x10016de0
push 0x3a
push eax
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x100418ca
mov eax, 0x10043580
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x10043584
cmove eax, edx
push eax
push str._s_s_s:_hu
call sym.libcurl.dll_curl_maprintf
add esp, 0x14
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100175ae
push str.Host:
push dword [ebp + 8]
call fcn.10013f30
add esp, 8
test eax, eax
jne 0x10016e48
push dword [ebp - 0x24]
push str.Host:__s_r_n
call sym.libcurl.dll_curl_maprintf
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10017572
push str.Proxy_Connection:
push dword [ebp + 8]
call fcn.10013f30
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x100418ca
push str.User_Agent:
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
call fcn.10013f30
add esp, 0x10
test eax, eax
jne 0x10016e8f
cmp dword [esi + 0x410], eax
je 0x10016e8f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3b8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov edx, 0x100418ca
push dword [ebp - 0x10]
mov ecx, edx
push dword [ebp - 0x18]
mov eax, dword [eax + 0x3b4]
test eax, eax
cmovne ecx, eax
mov eax, edx
push ecx
test edi, edi
cmovne eax, edi
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x24]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.10013ba0
mov edi, eax
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10016eda
push eax
call dword [0x1004e00c]
add esp, 4
push dword [ebp - 0x24]
call dword [0x1004e00c]
add esp, 4
test edi, edi
jne 0x10016f2b
push ebx
push 1
push dword [ebp + 8]
call fcn.10013c10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10016f2b
push 0x10041fec
push ebx
call fcn.10013ba0
mov edi, eax
add esp, 8
test edi, edi
jne 0x10016f2b
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x4830]
push eax
push dword [ebp + 8]
push ebx
call fcn.100139e0
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x10017590
push ebx
call fcn.100139a0
add esp, 4
test edi, edi
jne 0x100175a5
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.100029a0
add esp, 0xc
test edx, edx
jl 0x10017695
jg 0x10016f71
test eax, eax
je 0x10017695
cmp byte [ebp + 0x18], 0
jne 0x10016f8b
push dword [ebp + 0xc]
push ebx
call fcn.10002090
add esp, 8
test al, al
je 0x10017680
mov edi, dword [esi + 0x63c]
xor eax, eax
mov ecx, 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10017486
push ebx
call fcn.10021ff0
add esp, 4
test eax, eax
jne 0x10017689
mov eax, dword [esi + 0x63c]
add eax, 0x4000
cmp edi, eax
jae 0x100175c3
push 1
push 0
push esi
call fcn.100029a0
mov ebx, edx
add esp, 0xc
mov edi, eax
test ebx, ebx
jl 0x1001746e
jg 0x10016ff6
test edi, edi
je 0x1001746e
lea eax, [ebp - 0x34]
push eax
push 1
push dword [ebp - 0x10]
push dword [ebp - 0x30]
push dword [ebp + 8]
call fcn.10024650
add esp, 0x14
cmp eax, 0x51
jne 0x10017049
test ebx, ebx
jg 0x10017020
jl 0x10017027
cmp edi, 0x3e8
jb 0x10017027
mov edi, 0x3e8
xor ebx, ebx
push ebx
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x30]
call fcn.10023ea0
add esp, 0x14
cmp eax, 0xffffffff
je 0x10017401
mov edi, dword [ebp - 0x10]
jmp 0x10017310
test eax, eax
jne 0x10017483
cmp dword [ebp - 0x34], eax
jle 0x1001742e
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0x14], edx
cmp ecx, 1
jbe 0x100170d0
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov edi, dword [esi + 0x63c]
mov dword [ebp - 0x14], eax
mov eax, edx
or eax, ebx
mov dword [ebp - 0x10], edi
je 0x100170a5
add edx, 0xffffffff
mov dword [ebp - 0x1c], edx
adc ebx, 0xffffffff
mov dword [ebp - 0x20], ebx
js 0x10017483
jg 0x1001709d
test edx, edx
je 0x10017483
mov ebx, dword [ebp + 8]
jmp 0x10016fa7
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
push 1
push edi
push ebx
mov dword [ebp - 0x38], 0
call fcn.10016110
add esp, 0x10
cmp eax, 0xffffffff
je 0x10017415
mov ecx, dword [ebp - 0xc]
jmp 0x10016fa7
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
cmp byte [edi], 0xa
je 0x100170e8
inc edi
mov dword [ebp - 0x10], edi
jmp 0x10017313
cmp byte [esi + 0x350], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x24]
je 0x10017108
push edi
push ecx
push ebx
push 1
push esi
call fcn.10024440
mov ecx, dword [ebp - 0x18]
add esp, 0x14
cmp byte [esi + 0x4b8], 0
jne 0x10017136
xor eax, eax
cmp byte [esi + 0x345], al
push ecx
setne al
push ebx
add eax, 2
push eax
push edi
call fcn.10024410
add esp, 0x10
test eax, eax
jne 0x10017682
mov ecx, dword [ebp - 0x18]
add dword [esi + 0x482c], ecx
add dword [esi + 0x80], ecx
mov al, byte [ebx]
cmp al, 0xd
je 0x1001732a
cmp al, 0xa
je 0x1001732a
push 0x11
push ebx
push str.WWW_Authenticate:
mov byte [ecx + ebx], 0
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x1001717a
mov edi, dword [esi + 0xc8]
cmp edi, 0x191
je 0x1001719c
push 0x13
push ebx
push str.Proxy_authenticate:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x100171de
mov edi, dword [esi + 0xc8]
cmp edi, 0x197
jne 0x100171de
push ebx
call fcn.100140c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100175b7
cmp edi, 0x197
push ebx
sete al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.10014360
push ebx
mov edi, eax
call dword [0x1004e00c]
add esp, 0x10
test edi, edi
jne 0x100175a5
jmp 0x100172ff
push 0xf
push ebx
push str.Content_Length:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x10017233
mov ecx, dword [esi + 0xc8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x10017217
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.100245d0
add esp, 0xc
jmp 0x100172ff
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoll]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
jmp 0x100172ff
push str.close
push str.Connection:
push ebx
call fcn.10013ff0
add esp, 0xc
test al, al
je 0x10017253
mov byte [ebp - 1], 1
jmp 0x100172ff
push 0x12
push ebx
push str.Transfer_Encoding:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x100172bc
mov ecx, dword [esi + 0xc8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x10017289
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push esi
call fcn.100245d0
add esp, 0xc
jmp 0x100172ff
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.10013ff0
add esp, 0xc
test al, al
je 0x100172ff
push str.CONNECT_responded_chunked_n
push esi
call fcn.100245d0
push dword [ebp + 8]
mov byte [ebp - 2], 1
call fcn.100160f0
add esp, 0xc
jmp 0x100172ff
push str.close
push str.Proxy_Connection:
push ebx
call fcn.10013ff0
add esp, 0xc
test al, al
je 0x100172d9
mov byte [ebp - 1], 1
jmp 0x100172ff
lea edi, [esi + 0xc8]
push edi
lea eax, [ebp - 0x40]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.10004ec0
add esp, 0x10
cmp eax, 2
jne 0x100172ff
mov eax, dword [edi]
mov dword [esi + 0x481c], eax
mov edi, dword [esi + 0x63c]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], edi
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
cmp edx, 0x4000
jae 0x10017486
mov ecx, dword [ebp - 0xc]
jmp 0x10016fa7
mov edi, dword [esi + 0x63c]
xor eax, eax
cmp dword [esi + 0xc8], 0x197
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
jne 0x100173eb
cmp byte [esi + 0x4754], al
jne 0x100173eb
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x20]
or eax, ecx
mov dword [ebp - 0xc], 2
je 0x1001738b
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.100245d0
mov ebx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 2
jmp 0x10016fa7
cmp byte [ebp - 2], 0
je 0x100173eb
push str.Ignore_chunked_response_body_n
push esi
call fcn.100245d0
lea eax, [ebx + 1]
mov byte [esi + 0xfd], 1
cmp byte [eax], 0xa
cmove ebx, eax
lea eax, [ebp - 0x34]
push eax
push 1
mov dword [ebp - 0x24], ebx
lea eax, [ebx + 1]
mov ebx, dword [ebp + 8]
push eax
push ebx
call fcn.10016110
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1001737a
push str.chunk_reading_DONE_n
push esi
call fcn.100245d0
mov eax, dword [ebp - 8]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [eax], 2
jmp 0x10016fa7
mov eax, dword [ebp - 8]
xor ecx, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [eax], 2
jmp 0x10016fa7
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push esi
mov dword [ebp - 0x28], 1
call fcn.10024520
jmp 0x10017480
push str.chunk_reading_DONE_n
push esi
call fcn.100245d0
mov edi, dword [ebp - 8]
add esp, 8
mov dword [edi], 2
jmp 0x10017489
cmp dword [esi + 0x140], 0
je 0x1001745a
cmp dword [esi + 0x474c], 0
je 0x1001745a
mov ebx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [ebx + 0x37e], 1
call fcn.100245d0
add esp, 8
jmp 0x10017486
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp - 0x28], 1
call fcn.10024520
jmp 0x10017480
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10024520
mov dword [ebp - 0x28], 2
add esp, 8
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 8]
push ebx
call fcn.10021ff0
add esp, 4
test eax, eax
jne 0x10017689
cmp dword [ebp - 0x28], eax
jne 0x100175d1
cmp dword [esi + 0x481c], 0xc8
je 0x100174ce
push ebx
call fcn.10014190
add esp, 4
test eax, eax
jne 0x10017682
cmp byte [ebx + 0x365], al
je 0x100174ce
mov byte [ebp - 1], 1
jmp 0x100174d4
cmp byte [ebp - 1], 0
je 0x10017539
cmp dword [esi + 0x104], 0
je 0x10017562
mov eax, dword [ebp - 0x2c]
push dword [eax]
push ebx
call fcn.10002030
mov eax, dword [ebp - 0x2c]
add esp, 8
mov dword [eax], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x10017641
cmp byte [ebp - 1], 0
je 0x100175dd
cmp dword [esi + 0x104], 0
je 0x100175dd
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x37e], 1
call fcn.100245d0
add esp, 8
jmp 0x10017612
mov eax, dword [esi + 0x104]
test eax, eax
je 0x100174f8
cmp dword [edi], 2
jne 0x10016d16
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [edi], 0
call fcn.100245d0
add esp, 0xc
mov eax, dword [esi + 0x104]
test eax, eax
jne 0x10016d16
jmp 0x100174f8
push dword [ebp - 0x24]
call dword [0x1004e00c]
push ebx
call fcn.100139a0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.10024520
push 0
call fcn.100139a0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100139a0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push esi
call fcn.10024520
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x104]
call dword [0x1004e00c]
push 2
push ebx
mov dword [esi + 0x104], 0
call fcn.10002140
mov eax, dword [ebp - 0x2c]
push dword [eax]
push ebx
call fcn.10002030
mov eax, dword [ebp - 0x2c]
add esp, 0x14
mov dword [eax], 0xffffffff
mov dword [edi], 0
cmp byte [ebx + 0x37e], 0
jne 0x10017680
push dword [esi + 0xc8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.10024520
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 2
push dword [ebx + 0x3b4]
call dword [0x1004e00c]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x3b4], 0
push esi
mov byte [esi + 0x4750], 1
call fcn.100245d0
mov byte [esi + 0xfd], 0
add esp, 0xc
mov byte [ebx + 0x377], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10024520
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret