Function at 0x10017620
Capabilities:
Check http status code

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
mov esi, dword [ebx]
xor ebp, ebp
mov eax, dword [ebx + edi*4 + 0x190]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + edi*4 + 0x58c]
cmp eax, 2
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], ebp
je 0x10018092
mov dword [ebx + 0x2d0], ebp
cmp dword [ebx + edi*4 + 0x58c], ebp
jne 0x100178d3
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.100243c0
mov eax, dword [esi + 0x108]
push eax
call dword [0x1003c8cc]
add esp, 0x14
mov dword [esi + 0x108], ebp
call fcn.10013520
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x14], edi
je 0x10017f2a
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
push str._s:_hu
call sym.libcurl.dll_curl_maprintf
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x10017ee6
push 1
push ebp
push str.CONNECT
push ebx
call fcn.10012f90
push ebp
mov edi, eax
call dword [0x1003c8cc]
add esp, 0x14
test edi, edi
jne 0x100178ab
mov eax, 0x100437b4
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0xe8]
mov dword [esp + 0x28], 0x1003e1b4
cmp eax, 1
je 0x10017726
mov dword [esp + 0x28], 0x1003e1b8
mov ebp, dword [esp + 0x50]
mov ecx, dword [ebx + 0x98]
mov eax, dword [ebx + 0x290]
cmp ebp, ecx
je 0x1001774c
push 0x3a
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x1001775c
mov ecx, 0x1003e0bc
mov eax, 0x1003e0b8
jmp 0x10017763
mov ecx, 0x100437b4
mov eax, ecx
mov edx, dword [esp + 0x54]
push edx
push ecx
push ebp
push eax
push str._s_s_s:_hu
call sym.libcurl.dll_curl_maprintf
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x10017efc
push str.Host:
push ebx
call fcn.10012a00
add esp, 8
test eax, eax
jne 0x100177b0
push ebp
push str.Host:__s_r_n
call sym.libcurl.dll_curl_maprintf
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
je 0x10017f16
push str.Proxy_Connection:
push ebx
call fcn.10012a00
add esp, 8
test eax, eax
jne 0x100177ca
mov dword [esp + 0x20], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebx
call fcn.10012a00
add esp, 8
test eax, eax
jne 0x100177f0
mov eax, dword [esi + 0x49c]
test eax, eax
je 0x100177f0
mov eax, dword [ebx + 0x320]
mov dword [esp + 0x24], eax
mov ecx, dword [ebx + 0x31c]
test ecx, ecx
jne 0x100177ff
mov ecx, 0x100437b4
test edi, edi
mov eax, edi
jne 0x1001780a
mov eax, 0x100437b4
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push edx
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebp
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.10013820
mov edi, eax
mov eax, dword [esp + 0x30]
add esp, 0x20
test eax, eax
je 0x10017844
mov edx, eax
push edx
call dword [0x1003c8cc]
add esp, 4
push ebp
call dword [0x1003c8cc]
add esp, 4
test edi, edi
jne 0x10017895
mov ebp, dword [esp + 0x14]
push ebp
push 1
push ebx
call fcn.10013bf0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10017895
push 0x1003cbc4
push ebp
call fcn.10013820
mov edi, eax
add esp, 8
test edi, edi
jne 0x10017895
mov eax, dword [esp + 0x4c]
lea ecx, [esi + 0x4890]
push eax
push edi
push ecx
push ebx
push ebp
call fcn.10013560
add esp, 0x14
mov edi, eax
xor ebp, ebp
test edi, edi
je 0x100178af
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.10024430
add esp, 8
jmp 0x100178af
mov ebp, dword [esp + 0x14]
push ebp
call fcn.10013530
add esp, 4
test edi, edi
jne 0x10017f37
mov edx, dword [esp + 0x4c]
xor ebp, ebp
mov edi, edx
mov dword [ebx + edx*4 + 0x58c], 1
push 1
push ebp
push esi
call fcn.10001ef0
add esp, 0xc
test eax, eax
jle 0x10017f41
cmp dword [esp + 0x58], ebp
jne 0x100178ff
push edi
push ebx
call fcn.10003310
add esp, 8
test eax, eax
je 0x10018092
mov ebp, dword [esi + 0x6cc]
xor eax, eax
mov dword [esp + 0x10], 1
mov edi, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10017e39
mov eax, dword [esp + 0x48]
push eax
call fcn.100222e0
add esp, 4
test eax, eax
jne 0x10017f81
mov ecx, dword [esi + 0x6cc]
add ecx, 0x4000
cmp ebp, ecx
jae 0x10017f5c
push 1
push eax
push esi
call fcn.10001ef0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jle 0x10017dd1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x34]
push edx
push 1
push ebp
push eax
push ecx
call fcn.10024be0
add esp, 0x14
cmp eax, 0x51
jne 0x100179be
cmp ebx, 0x3e8
jl 0x10017990
mov ebx, 0x3e8
mov edx, dword [esp + 0x2c]
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.10023cc0
add esp, 0x10
cmp eax, 0xffffffff
je 0x10017de9
cmp dword [esp + 0x14], 0x4000
jb 0x10017919
jmp 0x10017e39
xor ecx, ecx
cmp eax, ecx
jne 0x10017e39
cmp dword [esp + 0x34], ecx
jle 0x10017df8
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc edx
cmp eax, 1
mov dword [esp + 0x14], edx
jle 0x10017a79
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esi + 0x6cc]
mov edx, eax
or edx, ebx
mov dword [esp + 0x14], ecx
je 0x10017a29
add eax, 0xffffffff
mov edx, ebx
adc edx, 0xffffffff
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
js 0x10017e39
jg 0x10017919
cmp eax, ecx
jbe 0x10017e39
jmp 0x10017919
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x48]
push eax
push 1
push ebp
push ecx
call fcn.10016aa0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10017919
push str.chunk_reading_DONE_n
push esi
call fcn.100243c0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x10], 0
mov dword [edx + eax*4 + 0x58c], 2
jmp 0x10017919
mov ebx, dword [esp + 0x20]
mov al, byte [ebp]
inc ebx
cmp al, 0xa
mov dword [esp + 0x20], ebx
je 0x10017a8f
inc ebp
jmp 0x100179ab
mov eax, dword [esi + 0x3b4]
test eax, eax
je 0x10017aab
mov ecx, dword [esp + 0x48]
push ecx
push ebx
push edi
push 1
push esi
call fcn.10024d40
add esp, 0x14
mov eax, dword [esi + 0x548]
test eax, eax
jne 0x10017ae1
mov ecx, dword [esi + 0x39c]
mov eax, 2
test ecx, ecx
je 0x10017ac9
mov eax, 3
mov edx, dword [esp + 0x48]
push ebx
push edi
push eax
push edx
call fcn.10024b70
add esp, 0x10
test eax, eax
jne 0x10018094
mov ebp, dword [esi + 0x488c]
mov edx, dword [esi + 0x80]
add ebp, ebx
add edx, ebx
mov dword [esi + 0x488c], ebp
mov dword [esi + 0x80], edx
mov al, byte [edi]
cmp al, 0xd
je 0x10017cfa
cmp al, 0xa
je 0x10017cfa
push 0x11
push edi
push str.WWW_Authenticate:
mov byte [ebx + edi], 0
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x10017b34
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x10017b55
push 0x13
push edi
push str.Proxy_authenticate:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x10017b99
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x10017b99
xor ecx, ecx
cmp eax, 0x197
sete cl
push edi
mov ebp, ecx
call fcn.10012a70
mov edi, eax
add esp, 4
test edi, edi
je 0x10017f2a
mov edx, dword [esp + 0x48]
push edi
push ebp
push edx
call fcn.100132f0
push edi
mov ebp, eax
call dword [0x1003c8cc]
add esp, 0x10
test ebp, ebp
jne 0x10017f77
jmp 0x10017ce5
push 0xf
push edi
push str.Content_Length:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x10017bfa
mov ecx, dword [esi + 0xc8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x10017bdd
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.100243c0
add esp, 0xc
jmp 0x10017ce5
push 0xa
add edi, 0xf
push 0
push edi
call fcn.10029800
add esp, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
jmp 0x10017ce5
push str.close
push str.Connection:
push edi
call fcn.10013960
add esp, 0xc
test eax, eax
je 0x10017c1e
mov dword [esp + 0x18], 1
jmp 0x10017ce5
push 0x12
push edi
push str.Transfer_Encoding:
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x10017c9b
mov ecx, dword [esi + 0xc8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
jne 0x10017c62
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push esi
call fcn.100243c0
add esp, 0xc
jmp 0x10017ce5
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.10013960
add esp, 0xc
test eax, eax
je 0x10017ce5
push str.CONNECT_responded_chunked_n
push esi
call fcn.100243c0
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x38], 1
push ecx
call fcn.10016a90
add esp, 0xc
jmp 0x10017ce5
push str.close
push str.Proxy_Connection:
push edi
call fcn.10013960
add esp, 0xc
test eax, eax
je 0x10017cbc
mov dword [esp + 0x18], 1
jmp 0x10017ce5
lea ebp, [esi + 0xc8]
lea edx, [esp + 0x38]
push ebp
push edx
push str.HTTP_1._d__d
push edi
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x10017ce5
mov eax, dword [ebp]
mov dword [esi + 0x487c], eax
mov ebp, dword [esi + 0x6cc]
mov dword [esp + 0x20], 0
mov edi, ebp
jmp 0x100179ab
mov eax, dword [esi + 0xc8]
mov ebp, dword [esi + 0x6cc]
xor edx, edx
cmp eax, 0x197
mov dword [esp + 0x14], edx
jne 0x10017db5
cmp dword [esi + 0x47a4], edx
jne 0x10017db5
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov ebx, eax
mov dword [esp + 0x10], 2
or ebx, ecx
je 0x10017d4b
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.100243c0
add esp, 0x10
jmp 0x10017db9
cmp dword [esp + 0x30], edx
je 0x10017db5
push str.Ignore_chunked_response_body_n
push esi
call fcn.100243c0
mov dword [esi + 0xfc], 1
mov al, byte [edi + 1]
add esp, 8
cmp al, 0xa
jne 0x10017d71
inc edi
mov ebx, dword [esp + 0x48]
lea ecx, [esp + 0x34]
push ecx
lea edx, [edi + 1]
push 1
push edx
push ebx
call fcn.10016aa0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10017db9
push str.chunk_reading_DONE_n
push esi
call fcn.100243c0
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x10], 0
mov dword [ebx + eax*4 + 0x58c], 2
jmp 0x10017db9
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [ecx + edx*4 + 0x58c], 2
jmp 0x10017919
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10024430
add esp, 8
mov dword [esp + 0x1c], 2
jmp 0x10017e39
mov dword [esp + 0x1c], 1
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
jmp 0x10017e30
cmp dword [esi + 0x150], ecx
je 0x10017e23
cmp dword [esi + 0x4794], ecx
je 0x10017e23
mov eax, dword [esp + 0x48]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov dword [eax + 0x2d0], 1
call fcn.100243c0
jmp 0x10017e36
mov dword [esp + 0x1c], 1
push str.Proxy_CONNECT_aborted
push esi
call fcn.10024430
add esp, 8
mov edi, dword [esp + 0x48]
push edi
call fcn.100222e0
add esp, 4
test eax, eax
jne 0x10017f81
mov eax, dword [esp + 0x1c]
xor ebp, ebp
cmp eax, ebp
jne 0x10018043
cmp dword [esi + 0x487c], 0xc8
je 0x10017e8b
push edi
call fcn.10012b80
add esp, 4
cmp eax, ebp
jne 0x10018094
cmp dword [edi + 0x26c], ebp
je 0x10017e8b
mov dword [esp + 0x18], 1
jmp 0x10017e91
cmp dword [esp + 0x18], ebp
je 0x10017e9d
cmp dword [esi + 0x108], ebp
jne 0x10017f8e
mov eax, dword [esi + 0x108]
mov ebx, dword [esp + 0x4c]
cmp eax, ebp
je 0x10017ecb
cmp dword [edi + ebx*4 + 0x58c], 2
jne 0x10017ecb
push ebp
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [edi + ebx*4 + 0x58c], ebp
call fcn.100243c0
add esp, 0xc
cmp dword [esi + 0x108], ebp
je 0x10017fae
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
xor ebp, ebp
jmp 0x1001766c
push edi
call fcn.10013530
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10013530
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push ebp
call dword [0x1003c8cc]
mov edx, dword [esp + 0x18]
push edx
call fcn.10013530
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10024430
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.CONNECT_response_too_large_
push esi
call fcn.10024430
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x34
ret
mov ebx, dword [esp + 0x4c]
mov eax, dword [edi + ebx*4 + 0x190]
push eax
push edi
call fcn.100031a0
add esp, 8
mov dword [edi + ebx*4 + 0x190], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x10018050
cmp dword [esp + 0x18], ebp
je 0x10017fe6
cmp dword [esi + 0x108], ebp
je 0x10017fe6
push str.Connect_me_again_please_n
push esi
mov dword [edi + 0x2d0], 1
call fcn.100243c0
add esp, 8
jmp 0x1001801d
mov ecx, dword [esi + 0x108]
push ecx
call dword [0x1003c8cc]
push 2
push edi
mov dword [esi + 0x108], ebp
call fcn.100032c0
mov edx, dword [edi + ebx*4 + 0x190]
push edx
push edi
call fcn.100031a0
add esp, 0x14
mov dword [edi + ebx*4 + 0x190], 0xffffffff
mov dword [edi + ebx*4 + 0x58c], ebp
mov eax, dword [edi + 0x2d0]
cmp eax, ebp
jne 0x10018092
mov eax, dword [esi + 0xc8]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.10024430
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov dword [edi + ebx*4 + 0x58c], 2
mov ecx, dword [edi + 0x31c]
push ecx
call dword [0x1003c8cc]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [edi + 0x31c], ebp
push esi
mov dword [esi + 0x4798], 1
call fcn.100243c0
mov dword [esi + 0xfc], ebp
add esp, 0xc
mov dword [edi + 0x2b4], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret