Function at 0x10015f30
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx]
mov dword [ebp - 0x44], 0
movlpd qword [ebp - 0x40], xmm0
lea eax, [edi + 0x64]
mov byte [ebp - 1], 0
lea eax, [ebx + eax*4]
mov byte [ebp - 2], 0
lea ecx, [edi + 0x13f]
mov dword [ebp - 0x34], eax
cmp dword [ebx + ecx*4], 2
lea ecx, [ebx + ecx*4]
mov eax, dword [ebx + edi*4 + 0x190]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], ecx
je 0x1001695b
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
mov byte [ebx + 0x26e], 0
mov dword [ebp - 0x20], eax
jmp 0x10015fa0
cmp dword [ecx], 0
jne 0x100161e9
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.10023090
push dword [esi + 0x104]
call dword [0x1005c00c]
add esp, 0x14
mov dword [esi + 0x104], 0
call fcn.10013100
mov ebx, eax
test ebx, ebx
je 0x10016847
push dword [ebp + 0x14]
push edi
push str._s:_hu
call sym.libcurl.dll_curl_maprintf
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001683e
push 1
push eax
push str.CONNECT
push dword [ebp + 8]
call fcn.10013c60
push dword [ebp - 0x28]
mov edi, eax
call dword [0x1005c00c]
add esp, 0x14
test edi, edi
jne 0x100161c9
mov edx, dword [ebp + 8]
mov ecx, 0x1004f1fc
mov eax, 0x1004f200
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 0x1004d81a
cmp dword [edx + 0xe8], 1
cmovne eax, ecx
mov cl, byte [edx + 0x25e]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x98]
je 0x1001606a
push 0x3a
push eax
call fcn.10038690
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x1004d81a
mov eax, 0x1004f3cc
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x1004f3d0
cmove eax, edx
push eax
push str._s_s_s:_hu
call sym.libcurl.dll_curl_maprintf
add esp, 0x14
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001683e
push str.Host:
push dword [ebp + 8]
call fcn.10013690
add esp, 8
test eax, eax
jne 0x100160d2
push dword [ebp - 0x28]
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 0x10016817
push str.Proxy_Connection:
push dword [ebp + 8]
call fcn.10013690
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x1004d81a
push str.User_Agent:
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 0x10], ecx
call fcn.10013690
add esp, 0x10
test eax, eax
jne 0x10016119
cmp dword [esi + 0x410], eax
je 0x10016119
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2a8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, 0x1004d81a
push dword [ebp - 0x10]
mov ecx, edx
push dword [ebp - 0x1c]
mov eax, dword [eax + 0x2a4]
test eax, eax
cmovne ecx, eax
mov eax, edx
push ecx
test edi, edi
cmovne eax, edi
push eax
push dword [ebp - 8]
push dword [ebp - 0x28]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.100132d0
mov edi, eax
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10016164
push eax
call dword [0x1005c00c]
add esp, 4
push dword [ebp - 0x28]
call dword [0x1005c00c]
add esp, 4
test edi, edi
jne 0x100161b5
push ebx
push 1
push dword [ebp + 8]
call fcn.10013340
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100161b5
push 0x1004df14
push ebx
call fcn.100132d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x100161b5
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x47d8]
push eax
push dword [ebp + 8]
push ebx
call fcn.10013110
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x100161c9
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.10022fe0
add esp, 8
push ebx
call fcn.100130d0
add esp, 4
test edi, edi
jne 0x10016835
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.10002910
add esp, 0xc
test edx, edx
jl 0x10016964
jg 0x10016208
test eax, eax
je 0x10016964
cmp byte [ebp + 0x18], 0
jne 0x10016220
push edi
push ebx
call fcn.10001ff0
add esp, 8
test al, al
je 0x1001695b
mov edi, dword [esi + 0x634]
xor eax, eax
mov ecx, 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ecx
lea esp, [esp]
test ecx, ecx
je 0x10016735
push ebx
call fcn.10020be0
add esp, 4
test eax, eax
jne 0x1001685d
mov eax, dword [esi + 0x634]
add eax, 0x4000
cmp edi, eax
jae 0x10016853
push 1
push 0
push esi
call fcn.10002910
mov ebx, edx
add esp, 0xc
mov edi, eax
test ebx, ebx
jl 0x10016797
jg 0x1001628f
test edi, edi
je 0x10016797
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.10023110
add esp, 0x14
cmp eax, 0x51
jne 0x100162e2
test ebx, ebx
jg 0x100162b9
jl 0x100162c0
cmp edi, 0x3e8
jb 0x100162c0
mov edi, 0x3e8
xor ebx, ebx
push ebx
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.10022960
add esp, 0x14
cmp eax, 0xffffffff
je 0x100166f0
mov edi, dword [ebp - 0x10]
jmp 0x100165e5
test eax, eax
jne 0x100167b2
cmp dword [ebp - 0x30], eax
jle 0x1001670b
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
inc edx
mov dword [ebp - 0x14], edx
cmp ecx, 1
jle 0x1001638b
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov edi, dword [esi + 0x634]
mov dword [ebp - 0x14], eax
mov eax, edx
or eax, ebx
mov dword [ebp - 0x10], edi
je 0x10016342
add edx, 0xffffffff
mov dword [ebp - 0x20], edx
adc ebx, 0xffffffff
mov dword [ebp - 0x24], ebx
js 0x100167b2
jg 0x1001633a
test edx, edx
je 0x100167ba
mov ebx, dword [ebp + 8]
jmp 0x10016240
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
push 1
push edi
push ebx
mov dword [ebp - 0x38], 0
call fcn.10015600
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10016240
push str.chunk_reading_DONE_n
push esi
call fcn.10023090
mov eax, dword [ebp + 0xc]
add esp, 8
xor ecx, ecx
mov dword [ebx + eax*4 + 0x4fc], 2
jmp 0x10016239
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp byte [edi], 0xa
je 0x100163a3
inc edi
mov dword [ebp - 0x10], edi
jmp 0x100165e8
cmp byte [esi + 0x350], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x28]
je 0x100163c3
push edi
push ecx
push ebx
push 1
push esi
call fcn.10022f00
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
cmp byte [esi + 0x4b0], 0
jne 0x100163f7
cmp byte [esi + 0x345], 0
mov edx, 3
push ecx
mov eax, 2
cmovne eax, edx
push ebx
push eax
push edi
call fcn.10022ed0
add esp, 0x10
test eax, eax
jne 0x10016977
mov ecx, dword [ebp - 0x1c]
add dword [esi + 0x47d4], ecx
add dword [esi + 0x80], ecx
mov al, byte [ebx]
cmp al, 0xd
je 0x100165ff
cmp al, 0xa
je 0x100165ff
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 0x1001643a
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x1001645b
push 0x13
push ebx
push str.Proxy_authenticate:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x100164a0
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x100164a0
cmp eax, 0x197
push ebx
sete byte [ebp - 0x3c]
call fcn.10013820
mov edi, eax
add esp, 4
test edi, edi
je 0x10016847
push edi
push dword [ebp - 0x3c]
push dword [ebp + 8]
call fcn.10013ac0
push edi
mov ebx, eax
call dword [0x1005c00c]
add esp, 0x10
test ebx, ebx
je 0x100165d4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push ebx
push str.Content_Length:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x100164ff
mov ecx, dword [esi + 0xc8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x100164e4
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.10023090
add esp, 0xc
jmp 0x100165d4
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.10039029
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
jmp 0x100165d4
push str.close
push str.Connection:
push ebx
call fcn.10013750
add esp, 0xc
test al, al
je 0x1001651f
mov byte [ebp - 1], 1
jmp 0x100165d4
push 0x12
push ebx
push str.Transfer_Encoding:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x10016591
mov ecx, dword [esi + 0xc8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x10016560
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push esi
call fcn.10023090
add esp, 0xc
jmp 0x100165d4
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.10013750
add esp, 0xc
test al, al
je 0x100165d4
push str.CONNECT_responded_chunked_n
push esi
call fcn.10023090
push edi
mov byte [ebp - 2], 1
call fcn.100155e0
add esp, 0xc
jmp 0x100165d4
push str.close
push str.Proxy_Connection:
push ebx
call fcn.10013750
add esp, 0xc
test al, al
je 0x100165ae
mov byte [ebp - 1], 1
jmp 0x100165d4
lea edi, [esi + 0xc8]
push edi
lea eax, [ebp - 0x44]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.10037f4f
add esp, 0x10
cmp eax, 2
jne 0x100165d4
mov eax, dword [edi]
mov dword [esi + 0x47c4], eax
mov edi, dword [esi + 0x634]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], edi
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
cmp edx, 0x4000
jae 0x10016735
mov ecx, dword [ebp - 8]
jmp 0x10016240
mov edi, dword [esi + 0x634]
xor eax, eax
cmp dword [esi + 0xc8], 0x197
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
jne 0x100166d5
cmp byte [esi + 0x46fc], al
jne 0x100166d5
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
or eax, ecx
mov dword [ebp - 8], 2
je 0x10016665
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.10023090
mov ebx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebx + eax*4 + 0x4fc], 2
jmp 0x10016240
cmp byte [ebp - 2], 0
je 0x100166d5
push str.Ignore_chunked_response_body_n
push esi
call fcn.10023090
lea eax, [ebx + 1]
mov byte [esi + 0xfd], 1
cmp byte [eax], 0xa
cmove ebx, eax
lea eax, [ebp - 0x30]
push eax
push 1
mov dword [ebp - 0x28], ebx
lea eax, [ebx + 1]
mov ebx, dword [ebp + 8]
push eax
push ebx
call fcn.10015600
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1001664f
push str.chunk_reading_DONE_n
push esi
call fcn.10023090
mov eax, dword [ebp + 0xc]
add esp, 8
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebx + eax*4 + 0x4fc], 2
mov dword [ebx + eax*4 + 0x4fc], 2
jmp 0x10016240
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebx + eax*4 + 0x4fc], 2
jmp 0x10016240
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov edi, 1
push esi
mov dword [ebp - 0xc], edi
call fcn.10022fe0
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x10016738
cmp dword [esi + 0x140], 0
je 0x1001677c
cmp dword [esi + 0x46f4], 0
je 0x1001677c
mov ebx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [ebx + 0x26e], 1
call fcn.10023090
add esp, 8
mov edi, dword [ebp - 0xc]
push ebx
call fcn.10020be0
add esp, 4
test eax, eax
jne 0x1001685d
test edi, edi
jne 0x1001690d
cmp dword [esi + 0x47c4], 0xc8
je 0x100167c5
push ebx
call fcn.100138f0
add esp, 4
test eax, eax
jne 0x10016977
cmp byte [ebx + 0x255], al
je 0x100167c5
mov byte [ebp - 1], 1
jmp 0x100167cb
push str.Proxy_CONNECT_aborted
mov edi, 1
push esi
mov dword [ebp - 0xc], edi
call fcn.10022fe0
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x10016738
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10022fe0
mov ebx, dword [ebp + 8]
mov edi, 2
add esp, 8
mov dword [ebp - 0xc], edi
jmp 0x10016738
mov ebx, dword [ebp + 8]
jmp 0x10016735
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
jmp 0x10016738
cmp byte [ebp - 1], 0
je 0x100167d8
cmp dword [esi + 0x104], 0
jne 0x10016869
cmp dword [esi + 0x104], 0
mov ecx, dword [ebp - 0x18]
je 0x1001687f
cmp dword [ecx], 2
jne 0x10016806
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ecx], 0
call fcn.10023090
mov ecx, dword [ebp - 0x18]
add esp, 0xc
cmp dword [esi + 0x104], 0
je 0x1001687f
mov edi, dword [ebp + 0xc]
jmp 0x10015fa0
push dword [ebp - 0x28]
call dword [0x1005c00c]
push ebx
call fcn.100130d0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100130d0
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 0x10016969
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x34]
push dword [edi]
push ebx
call fcn.10001f90
add esp, 8
mov dword [edi], 0xffffffff
jmp 0x10016882
mov edi, dword [ebp - 0x34]
cmp dword [esi + 0xc8], 0xc8
je 0x10016919
cmp byte [ebp - 1], 0
je 0x100168b8
cmp dword [esi + 0x104], 0
je 0x100168b8
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x26e], 1
call fcn.10023090
add esp, 8
jmp 0x100168e7
push dword [esi + 0x104]
call dword [0x1005c00c]
push 2
push ebx
mov dword [esi + 0x104], 0
call fcn.10002090
push dword [edi]
push ebx
call fcn.10001f90
add esp, 0x14
mov dword [edi], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
cmp byte [ebx + 0x26e], 0
jne 0x1001695b
push dword [esi + 0xc8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.10022fe0
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov dword [eax], 2
push dword [ebx + 0x2a4]
call dword [0x1005c00c]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x2a4], 0
push esi
mov byte [esi + 0x46f8], 1
call fcn.10023090
mov byte [esi + 0xfd], 0
add esp, 0xc
mov byte [ebx + 0x267], 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.10022fe0
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret