Function at 0x67357e40
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], 0
mov edx, dword [edi]
mov dword [ebp - 0x34], edx
mov ecx, dword [edx + 0x1b4]
mov dword [ebp - 0x40], ecx
test ecx, ecx
jne 0x67357e72
mov dword [ebp - 0x40], 0x36ee80
mov ebx, dword [ebp + 0xc]
add ebx, 0x30
mov dword [ebp - 0x60], ebx
mov edx, dword [edi + ebx*4 + 8]
mov dword [ebp - 0x3c], edx
mov byte [edi + 0x142], 0
mov byte [ebp - 0x65], 0
xor ebx, ebx
xor esi, esi
movzx eax, ax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x861c
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x34]
add eax, 0x4d4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x34]
add edx, 0x90
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], esi
cmp byte [edi + 0x139], 0
jne 0x673580e9
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 0xc], ecx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.673471e0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x100]
test eax, eax
je 0x67357f11
mov dword [esp], eax
call dword [0x67391008]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x100], 0
mov dword [esp + 4], 0xc
mov dword [esp], 1
call dword [0x67391014]
mov esi, eax
test eax, eax
je 0x673588e4
mov ebx, dword [ebp - 0x4c]
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str._s:_hu
call fcn.673454ec
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x673588ee
mov dword [esp], 1
mov ecx, dword [ebp - 0x2c]
mov edx, str.CONNECT
mov eax, edi
call fcn.67356eb8
test eax, eax
jne 0x67358058
cmp dword [edi + 0xac], 1
je 0x67358430
mov dword [ebp - 0x44], 0x673990e5
mov dword [esp + 4], str.Host:
mov edx, dword [ebp - 0x34]
mov dword [esp], edx
call fcn.67356c10
test eax, eax
je 0x6735852d
mov ebx, 0x67398f62
mov dword [esp + 4], str.Proxy_Connection:
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.67356c10
test eax, eax
je 0x6735859b
mov ecx, 0x67398f62
mov dword [esp + 4], 0x6739915f
mov edx, dword [ebp - 0x34]
mov dword [esp], edx
mov dword [ebp - 0x7c], ecx
call fcn.67356c10
test eax, eax
mov ecx, dword [ebp - 0x7c]
je 0x6735856c
mov edx, 0x67398f62
mov eax, dword [edi + 0x150]
test eax, eax
je 0x67358591
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov edx, dword [ebp - 0x44]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], str.CONNECT__s:_hu_HTTP__s_r_n_s_s_s_s
mov dword [esp], esi
call fcn.67357ac0
cmp byte [ebx], 0
jne 0x6735843c
test eax, eax
je 0x6735807c
mov dword [esp + 4], str.Failed_sending_CONNECT_to_proxy
mov ebx, dword [ebp - 0x34]
mov dword [esp], ebx
mov dword [ebp - 0x7c], eax
call fcn.67346d80
xor esi, esi
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
mov dword [ebp - 0x7c], eax
call dword [0x67391008]
mov dword [esp], esi
call fcn.67347e48
mov eax, dword [ebp - 0x7c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.67357cec
test eax, eax
jne 0x6735803d
mov dword [esp + 4], 0x6739918d
mov dword [esp], esi
call fcn.67357ac0
test eax, eax
jne 0x6735803d
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov ecx, dword [ebp - 0x64]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.673577d8
test eax, eax
jne 0x6735803d
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [0x67391008]
mov dword [esp], 0
call fcn.67347e48
mov byte [edi + 0x139], 1
call fcn.673533ec
mov ecx, dword [edi + 0xb8]
mov ebx, dword [edi + 0xbc]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.67353428
mov ebx, dword [ebp - 0x40]
sub ebx, eax
test ebx, ebx
jle 0x673583d8
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x4b8], 2
je 0x67358404
mov byte [edi + 0x139], 0
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x50], ebx
mov esi, ebx
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x51], 0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x58], 0
nop
call fcn.673533ec
mov ecx, dword [edi + 0xb8]
mov ebx, dword [edi + 0xbc]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.67353428
mov ebx, dword [ebp - 0x40]
sub ebx, eax
mov eax, ebx
test ebx, ebx
jle 0x673583d8
cmp ebx, 0x3e8
jle 0x67358195
mov eax, 0x3e8
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
mov dword [esp], edx
call fcn.6735199c
cmp eax, 0xffffffff
je 0x67358244
test eax, eax
jne 0x67358200
xor edx, edx
mov dword [esp], edi
mov dword [ebp - 0x7c], edx
call fcn.6735284c
test eax, eax
mov edx, dword [ebp - 0x7c]
jne 0x673583f8
cmp dword [ebp - 0x30], 0x3fff
ja 0x67358274
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x67358274
test edx, edx
je 0x67358154
mov eax, 0x38
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
lea ebx, [ebp - 0x20]
mov dword [esp + 0x10], ebx
mov eax, 0x4000
sub eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.67346a6c
cmp eax, 0x51
je 0x67358264
test eax, eax
je 0x67358318
mov dword [ebp - 0x38], 0
xor edx, edx
jmp 0x673581bb
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov ecx, dword [ebp - 0x34]
mov dword [esp], ecx
call fcn.67346d80
mov edx, 1
jmp 0x673581bb
xor edx, edx
cmp dword [ebp - 0x30], 0x3fff
jbe 0x673581de
nop
test edx, edx
jne 0x673581f1
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x8608], 0xc8
je 0x67358368
mov dword [esp], edi
call fcn.6735751c
test eax, eax
jne 0x67358072
cmp byte [edi + 0x12c], 0
je 0x67358368
mov byte [ebp - 0x51], 1
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebx + 0x100]
test ecx, ecx
jne 0x67358901
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x90]
cmp eax, 0xc8
je 0x673584ed
mov dword [esp + 8], eax
mov dword [esp + 4], str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov dword [esp], edx
call fcn.67346d80
cmp byte [ebp - 0x51], 0
je 0x673581f1
mov ecx, dword [ebp - 0x34]
mov esi, dword [ecx + 0x100]
test esi, esi
je 0x673581f1
mov byte [edi + 0x142], 1
mov eax, 0x38
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
test edx, edx
jle 0x67358388
cmp dword [ebp - 0x38], 1
jle 0x673585a5
mov eax, dword [ebp - 0x74]
or eax, dword [ebp - 0x78]
je 0x67358450
mov ecx, dword [ebp - 0x2c]
mov ebx, ecx
sar ebx, 0x1f
sub dword [ebp - 0x78], ecx
sbb dword [ebp - 0x74], ebx
cmp dword [ebp - 0x74], 0
jl 0x673584ac
jle 0x673584a2
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0
xor edx, edx
jmp 0x673581bb
cmp byte [ebp - 0x51], 0
jne 0x673582b0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x100]
test eax, eax
jne 0x67357ec0
jmp 0x673582c1
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x140]
test edx, edx
je 0x673583b4
mov eax, dword [ecx + 0x8570]
test eax, eax
je 0x673583b4
mov byte [edi + 0x142], 1
mov dword [ebp - 0x38], 0
xor edx, edx
jmp 0x673581bb
mov dword [esp + 4], str.Proxy_CONNECT_aborted
mov ebx, dword [ebp - 0x34]
mov dword [esp], ebx
call fcn.67346d80
mov dword [ebp - 0x38], 0
mov edx, 1
jmp 0x673581bb
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_timeout
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.67346d80
mov eax, 0x38
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov eax, 0x2a
jmp 0x67358072
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov dword [esp], ecx
call fcn.6735199c
test eax, eax
jne 0x6735812b
xor eax, eax
jmp 0x67358072
mov dword [ebp - 0x44], 0x673990e1
jmp 0x67357f87
mov dword [esp], ebx
mov dword [ebp - 0x7c], eax
call dword [0x67391008]
mov eax, dword [ebp - 0x7c]
jmp 0x67358039
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x48]
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.6736c140
inc eax
je 0x673584c2
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Read__zd_bytes_of_chunk__continue_n
mov ebx, dword [ebp - 0x34]
mov dword [esp], ebx
call fcn.673471e0
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0
xor edx, edx
jmp 0x673581bb
cmp dword [ebp - 0x78], 0
ja 0x67358356
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
jmp 0x673581b9
mov dword [esp + 4], str.chunk_reading_DONE_n
mov ecx, dword [ebp - 0x34]
mov dword [esp], ecx
call fcn.673471e0
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
xor edx, edx
jmp 0x673581bb
mov eax, dword [edi + 0x150]
mov dword [esp], eax
call fcn.67347e48
mov dword [edi + 0x150], 0
mov ebx, dword [ebp - 0x34]
mov byte [ebx + 0x8574], 1
mov dword [esp + 4], str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [esp], ebx
call fcn.673471e0
mov byte [ebx + 0xf9], 0
xor eax, eax
jmp 0x67358072
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [esp], str.Host:__s_r_n
call fcn.673454ec
mov ebx, eax
test eax, eax
jne 0x67357fa7
mov dword [esp], esi
call dword [0x67391008]
mov ebx, dword [ebp - 0x2c]
mov dword [esp], ebx
call dword [0x67391008]
mov eax, 0x1b
jmp 0x67358072
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x344]
test eax, eax
je 0x67357fe8
mov edx, dword [edi + 0x154]
mov eax, dword [edi + 0x150]
test eax, eax
jne 0x67357ffb
mov eax, 0x67398f62
jmp 0x67357ffb
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
jmp 0x67357fc7
lea eax, [esi + 1]
xor ecx, ecx
mov edx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x50]
mov ebx, ecx
mov dword [ebp - 0x5c], edi
mov edi, eax
jmp 0x673585c9
mov eax, edi
inc ebx
inc edi
cmp dword [ebp - 0x20], ebx
jle 0x6735879e
inc edx
cmp byte [edi - 1], 0xa
jne 0x673585bc
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x2b0], 0
jne 0x67358708
mov ecx, dword [ebp - 0x34]
cmp byte [ecx + 0x2a3], 1
sbb eax, eax
add eax, 3
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
mov dword [ebp - 0x7c], edx
call fcn.67346e48
test eax, eax
mov edx, dword [ebp - 0x7c]
jne 0x67358072
mov al, byte [esi]
cmp al, 0xd
je 0x67358811
cmp al, 0xa
je 0x67358811
lea edx, [esi + edx]
mov dword [ebp - 0x44], edx
mov cl, byte [edx]
mov byte [ebp - 0x50], cl
mov byte [edx], 0
mov dword [esp + 8], 0x11
mov dword [esp + 4], esi
mov dword [esp], str.WWW_Authenticate:
call fcn.673696c4
test eax, eax
je 0x67358663
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x90], 0x191
je 0x67358732
mov dword [esp + 8], 0x13
mov dword [esp + 4], esi
mov dword [esp], str.Proxy_authenticate:
call fcn.673696c4
test eax, eax
je 0x67358692
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x90], 0x197
je 0x67358754
mov dword [esp + 8], 0xf
mov dword [esp + 4], esi
mov dword [esp], 0x673992bb
call fcn.673696c4
test eax, eax
je 0x673586e4
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
add esi, 0xf
mov dword [esp], esi
call fcn.67386a10
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov cl, byte [ebp - 0x50]
mov eax, dword [ebp - 0x44]
mov byte [eax], cl
mov esi, edi
mov eax, edi
xor edx, edx
jmp 0x673585be
mov dword [esp + 8], str.close
mov dword [esp + 4], str.Connection:
mov dword [esp], esi
call fcn.67357b44
test al, al
je 0x6735875b
mov byte [ebp - 0x51], 1
jmp 0x673586cf
mov ecx, dword [ebp - 0x5c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x7c], edx
call fcn.67346bd4
mov edx, dword [ebp - 0x7c]
jmp 0x673585e0
mov eax, 0x191
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x5c]
mov dword [esp], ecx
call fcn.67357320
test eax, eax
je 0x673586cf
jmp 0x67358072
mov eax, 0x197
jmp 0x67358737
mov dword [esp + 8], str.chunked
mov dword [esp + 4], str.Transfer_Encoding:
mov dword [esp], esi
call fcn.67357b44
test al, al
je 0x673587b6
mov dword [esp + 4], str.CONNECT_responded_chunked_n
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.673471e0
mov edx, dword [ebp - 0x5c]
mov dword [esp], edx
call fcn.6736c120
mov byte [ebp - 0x65], 1
jmp 0x673586cf
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], esi
mov edi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x2c]
add dword [ebp - 0x30], edx
mov esi, eax
xor edx, edx
jmp 0x673581bb
mov dword [esp + 8], str.close
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], esi
call fcn.67357b44
test al, al
jne 0x67358700
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 0xc], ecx
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.HTTP_1._d__d
mov dword [esp], esi
call sub.msvcrt.dll_sscanf
cmp eax, 2
jne 0x673586cf
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x90]
mov dword [edx + 0x8608], eax
jmp 0x673586cf
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], esi
mov ecx, ebx
mov edi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x90], 0x197
jne 0x673584d5
cmp byte [edx + 0x8578], 0
jne 0x673584ac
mov ebx, dword [ebp - 0x74]
or ebx, dword [ebp - 0x78]
jne 0x67358921
cmp byte [ebp - 0x65], 0
je 0x673584ac
mov ebx, dword [ebp - 0x34]
mov byte [ebx + 0xf9], 1
mov eax, dword [ebp - 0x20]
sub eax, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str._zd_bytes_of_chunk_left_n
mov dword [esp], ebx
mov dword [ebp - 0x7c], ecx
call fcn.673471e0
mov eax, dword [ebp - 0x50]
inc eax
mov edx, dword [ebp - 0x50]
cmp byte [edx + 1], 0xa
mov ecx, dword [ebp - 0x7c]
je 0x67358986
lea ebx, [ebp - 0x20]
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.6736c140
inc eax
je 0x67358973
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Read__zd_bytes_of_chunk__continue_n
mov edx, dword [ebp - 0x34]
mov dword [esp], edx
call fcn.673471e0
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x30], 0
xor edx, edx
jmp 0x673581bb
mov eax, 0x1b
jmp 0x67358072
mov dword [esp], esi
call dword [0x67391008]
mov eax, 0x1b
jmp 0x67358072
mov edx, dword [ebp - 0x60]
mov eax, dword [edi + edx*4 + 8]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
push edx
mov ecx, dword [ebp - 0x60]
mov dword [edi + ecx*4 + 8], 0xffffffff
jmp 0x673582c1
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.Ignore__lld_bytes_of_response_body_n
mov edx, dword [ebp - 0x34]
mov dword [esp], edx
mov dword [ebp - 0x7c], ecx
call fcn.673471e0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x7c]
sub eax, ecx
cdq
sub dword [ebp - 0x78], eax
sbb dword [ebp - 0x74], edx
cmp dword [ebp - 0x74], 0
jl 0x673584ac
jg 0x673588c9
cmp dword [ebp - 0x78], 0
jbe 0x673584ac
jmp 0x673588c9
mov dword [esp + 4], str.chunk_reading_DONE_n
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
jmp 0x673584d0
inc ecx
mov dword [ebp - 0x50], eax
inc eax
jmp 0x6735888c