Function at 0x10016ba0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [ecx]
lea eax, [edx + 0x64]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x3c], 0
lea edi, [edx + 0x1a4]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
lea edi, [ecx + edi*4]
xor bl, bl
mov dword [ebp - 0x2c], eax
cmp dword [edi], 2
movlpd qword [ebp - 0x38], xmm0
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], edi
je 0x10017578
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov byte [ecx + 0x37e], bl
mov dword [ebp - 0x24], eax
cmp dword [edi], 0
jne 0x10016e3d
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.100244b0
push dword [esi + 0x104]
call dword [0x100ad00c]
add esp, 0x14
mov dword [esi + 0x104], 0
call fcn.10013940
mov ebx, eax
test ebx, ebx
je 0x100174a9
push dword [ebp + 0x14]
push edi
push str._s:_hu
call sym.libcurl.dll_curl_maprintf
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100174a0
push 1
push eax
push str.CONNECT
push dword [ebp + 8]
call fcn.10014530
push dword [ebp - 0x1c]
mov edi, eax
call dword [0x100ad00c]
add esp, 0x14
test edi, edi
jne 0x10016e23
mov edx, dword [ebp + 8]
mov ecx, 0x10099360
mov eax, 0x10099364
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x1009787a
cmp dword [edx + 0xe8], 1
cmovne eax, ecx
mov cl, byte [edx + 0x36e]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x98]
je 0x10016cce
push 0x3a
push eax
call fcn.10040d30
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x1009787a
mov eax, 0x10099530
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x10099534
cmove eax, edx
push eax
push str._s_s_s:_hu
call sym.libcurl.dll_curl_maprintf
add esp, 0x14
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100174a0
push str.Host:
push dword [ebp + 8]
call fcn.10013ea0
add esp, 8
test eax, eax
jne 0x10016d36
push dword [ebp - 0x1c]
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 0x10017464
push str.Proxy_Connection:
push dword [ebp + 8]
call fcn.10013ea0
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x1009787a
push str.User_Agent:
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
call fcn.10013ea0
add esp, 0x10
test eax, eax
jne 0x10016d7d
cmp dword [esi + 0x410], eax
je 0x10016d7d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3b8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov edx, 0x1009787a
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 - 0x34]
push dword [ebp - 0x1c]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.10013b10
mov edi, eax
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10016dc8
push eax
call dword [0x100ad00c]
add esp, 4
push dword [ebp - 0x1c]
call dword [0x100ad00c]
add esp, 4
test edi, edi
jne 0x10016e19
push ebx
push 1
push dword [ebp + 8]
call fcn.10013b80
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10016e19
push 0x10097f9c
push ebx
call fcn.10013b10
mov edi, eax
add esp, 8
test edi, edi
jne 0x10016e19
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x4830]
push eax
push dword [ebp + 8]
push ebx
call fcn.10013950
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x10017482
push ebx
call fcn.10013910
add esp, 4
test edi, edi
jne 0x10017497
mov eax, dword [ebp - 8]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.100029a0
add esp, 0xc
test edx, edx
jl 0x1001758d
jg 0x10016e5c
test eax, eax
je 0x1001758d
cmp byte [ebp + 0x18], 0
jne 0x10016e78
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10002090
add esp, 8
test al, al
je 0x10017578
mov edi, dword [esi + 0x63c]
xor eax, eax
mov ecx, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ecx
mov ebx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x10016f8d
push dword [ebp + 8]
call fcn.10021ed0
add esp, 4
test eax, eax
jne 0x10017581
mov eax, dword [esi + 0x63c]
add eax, 0x4000
cmp edi, eax
jae 0x100174b5
push 1
push 0
push esi
call fcn.100029a0
mov edi, eax
add esp, 0xc
mov eax, edx
mov dword [ebp - 0x34], eax
test eax, eax
jl 0x100173a0
jg 0x10016ee7
test edi, edi
je 0x100173a0
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.10024530
add esp, 0x14
cmp eax, 0x51
jne 0x10016f3d
mov eax, dword [ebp - 0x34]
test eax, eax
jg 0x10016f14
jl 0x10016f1b
cmp edi, 0x3e8
jb 0x10016f1b
mov edi, 0x3e8
xor eax, eax
push eax
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.10023d80
add esp, 0x14
cmp eax, 0xffffffff
je 0x1001731c
mov edi, dword [ebp - 0x14]
jmp 0x1001724f
test eax, eax
jne 0x10016f8d
cmp dword [ebp - 0x30], eax
jle 0x10017356
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
inc edx
mov dword [ebp - 0x18], edx
cmp ecx, 1
jbe 0x10017014
mov edx, dword [ebp - 0x24]
mov edi, dword [esi + 0x63c]
mov dword [ebp - 0x18], eax
mov eax, edx
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], edi
je 0x10016fea
add edx, 0xffffffff
mov dword [ebp - 0x24], edx
adc dword [ebp - 0x20], 0xffffffff
js 0x10016f8d
jg 0x10016e93
test edx, edx
jne 0x10016e93
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
push dword [ebp + 8]
call fcn.10021ed0
add esp, 4
test eax, eax
jne 0x10017581
test ebx, ebx
jne 0x100174c3
cmp dword [esi + 0x481c], 0xc8
je 0x100173bb
push dword [ebp + 8]
call fcn.100140f0
add esp, 4
test eax, eax
jne 0x1001757a
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x365], al
je 0x100173be
mov bl, 1
mov byte [ebp - 1], bl
jmp 0x100173c5
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 1
push edi
push dword [ebp + 8]
call fcn.10016020
add esp, 0x10
cmp eax, 0xffffffff
je 0x10017337
mov ecx, dword [ebp - 0x10]
jmp 0x10016e93
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp byte [edi], 0xa
je 0x1001702c
inc edi
mov dword [ebp - 0x14], edi
jmp 0x10017252
cmp byte [esi + 0x350], 0
mov edi, dword [ebp + 8]
je 0x10017049
push edi
push ecx
push ebx
push 1
push esi
call fcn.10024320
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
cmp byte [esi + 0x4b8], 0
jne 0x10017077
xor eax, eax
cmp byte [esi + 0x345], al
push ecx
setne al
push ebx
add eax, 2
push eax
push edi
call fcn.100242f0
add esp, 0x10
test eax, eax
jne 0x1001757a
mov ecx, dword [ebp - 0x1c]
add dword [esi + 0x482c], ecx
add dword [esi + 0x80], ecx
mov al, byte [ebx]
cmp al, 0xd
je 0x10017266
cmp al, 0xa
je 0x10017266
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 0x100170bb
mov edi, dword [esi + 0xc8]
cmp edi, 0x191
je 0x100170dd
push 0x13
push ebx
push str.Proxy_authenticate:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x1001711f
mov edi, dword [esi + 0xc8]
cmp edi, 0x197
jne 0x1001711f
push ebx
call fcn.10014020
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100174a9
cmp edi, 0x197
push ebx
sete al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.100142c0
push ebx
mov edi, eax
call dword [0x100ad00c]
add esp, 0x10
test edi, edi
jne 0x10017497
jmp 0x1001723f
push 0xf
push ebx
push str.Content_Length:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x10017173
mov ecx, dword [esi + 0xc8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x10017158
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.100244b0
add esp, 0xc
jmp 0x1001723f
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.1005ab1d
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x1001723f
push str.close
push str.Connection:
push ebx
call fcn.10013f60
add esp, 0xc
test al, al
je 0x10017193
mov byte [ebp - 1], 1
jmp 0x1001723f
push 0x12
push ebx
push str.Transfer_Encoding:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x100171fc
mov ecx, dword [esi + 0xc8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x100171c9
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push esi
call fcn.100244b0
add esp, 0xc
jmp 0x1001723f
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.10013f60
add esp, 0xc
test al, al
je 0x1001723f
push str.CONNECT_responded_chunked_n
push esi
call fcn.100244b0
push dword [ebp + 8]
mov byte [ebp - 2], 1
call fcn.10016000
add esp, 0xc
jmp 0x1001723f
push str.close
push str.Proxy_Connection:
push ebx
call fcn.10013f60
add esp, 0xc
test al, al
je 0x10017219
mov byte [ebp - 1], 1
jmp 0x1001723f
lea edi, [esi + 0xc8]
push edi
lea eax, [ebp - 0x3c]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.10004eb0
add esp, 0x10
cmp eax, 2
jne 0x1001723f
mov eax, dword [edi]
mov dword [esi + 0x481c], eax
mov edi, dword [esi + 0x63c]
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 0x10016f8d
mov ecx, dword [ebp - 0x10]
jmp 0x10016e93
mov edi, dword [esi + 0x63c]
xor eax, eax
cmp dword [esi + 0xc8], 0x197
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
jne 0x10017309
cmp byte [esi + 0x4754], al
jne 0x10017309
mov edx, dword [ebp - 0x24]
mov eax, edx
mov ecx, dword [ebp - 0x20]
or eax, ecx
mov dword [ebp - 0x10], 2
je 0x100172c0
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.100244b0
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], 2
jmp 0x10016e93
cmp byte [ebp - 2], 0
je 0x10017309
push str.Ignore_chunked_response_body_n
push esi
call fcn.100244b0
lea eax, [ebx + 1]
mov byte [esi + 0xfd], 1
cmp byte [eax], 0xa
cmove ebx, eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
call fcn.10016020
add esp, 0x18
cmp eax, 0xffffffff
jne 0x100172af
push str.chunk_reading_DONE_n
push esi
call fcn.100244b0
add esp, 8
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [eax], 2
jmp 0x10016e93
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov ebx, 1
push esi
mov dword [ebp - 0xc], ebx
call fcn.10024400
add esp, 8
jmp 0x10016f90
push str.chunk_reading_DONE_n
push esi
call fcn.100244b0
mov edi, dword [ebp - 8]
add esp, 8
mov ebx, dword [ebp - 0xc]
mov dword [edi], 2
jmp 0x10016f93
cmp dword [esi + 0x140], 0
je 0x10017385
cmp dword [esi + 0x474c], 0
je 0x10017385
mov eax, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [eax + 0x37e], 1
call fcn.100244b0
add esp, 8
jmp 0x10016f8d
push str.Proxy_CONNECT_aborted
mov ebx, 1
push esi
mov dword [ebp - 0xc], ebx
call fcn.10024400
add esp, 8
jmp 0x10016f90
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10024400
mov ebx, 2
add esp, 8
mov dword [ebp - 0xc], ebx
jmp 0x10016f90
mov ecx, dword [ebp + 8]
mov bl, byte [ebp - 1]
test bl, bl
je 0x1001742b
cmp dword [esi + 0x104], 0
je 0x10017454
mov eax, dword [ebp - 0x28]
push dword [eax]
push ecx
call fcn.10002030
mov eax, dword [ebp - 0x28]
add esp, 8
mov dword [eax], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x10017536
test bl, bl
je 0x100174cf
cmp dword [esi + 0x104], 0
je 0x100174cf
mov ebx, dword [ebp + 8]
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x37e], 1
call fcn.100244b0
add esp, 8
jmp 0x10017507
mov eax, dword [esi + 0x104]
test eax, eax
je 0x100173e9
cmp dword [edi], 2
jne 0x10016c04
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [edi], 0
call fcn.100244b0
add esp, 0xc
mov eax, dword [esi + 0x104]
test eax, eax
jne 0x10016c04
jmp 0x100173e9
push dword [ebp - 0x1c]
call dword [0x100ad00c]
push ebx
call fcn.10013910
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.10024400
push 0
call fcn.10013910
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10013910
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.10024400
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x104]
call dword [0x100ad00c]
mov ebx, dword [ebp + 8]
push 2
push ebx
mov dword [esi + 0x104], 0
call fcn.10002140
mov eax, dword [ebp - 0x28]
push dword [eax]
push ebx
call fcn.10002030
mov eax, dword [ebp - 0x28]
add esp, 0x14
mov dword [eax], 0xffffffff
mov dword [edi], 0
cmp byte [ebx + 0x37e], 0
jne 0x10017578
push dword [esi + 0xc8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.10024400
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov dword [edi], 2
push dword [ebx + 0x3b4]
call dword [0x100ad00c]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x3b4], 0
push esi
mov byte [esi + 0x4750], 1
call fcn.100244b0
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.10024400
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret