Function at 0x6b278f80
Capabilities:
Check http status code

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x64], 0
mov edi, dword [esi]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0x218]
mov edx, eax
test eax, eax
mov eax, 0x36ee80
cmovne eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x94]
lea eax, [esi + eax*4]
mov edx, dword [eax + 0x138]
mov dword [esp + 0x50], eax
mov eax, dword [eax + 0x568]
mov dword [esp + 0x2c], edx
cmp eax, 2
je 0x6b279712
lea edx, [edi + 0x5ec]
mov ebp, edi
mov dword [esi + 0x280], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], edx
test eax, eax
je 0x6b279797
mov eax, dword [esp + 0x48]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [ebp + 0xc8]
mov dword [esp + 0x54], eax
test ebx, ebx
jne 0x6b2791ac
mov eax, dword [esp + 0x28]
test eax, eax
je 0x6b2791ac
call fcn.6b241e20
mov ecx, dword [esi + 0x128]
mov ebx, dword [esi + 0x12c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.6b241e50
mov ecx, dword [esp + 0x38]
sub ecx, eax
test ecx, ecx
jle 0x6b279550
mov eax, dword [esp + 0x2c]
cmp ecx, 0x3e8
mov edx, 0x3e8
cmovle edx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call fcn.6b26aac0
cmp eax, 0xffffffff
je 0x6b2792e0
test eax, eax
je 0x6b279190
lea eax, [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, 0x4000
sub eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.6b24bee0
cmp eax, 0x51
je 0x6b279310
test eax, eax
jne 0x6b279300
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x6b279317
add dword [esp + 0x24], eax
cmp dword [esp + 0x28], 1
jle 0x6b279366
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebx, ecx
or ebx, edx
je 0x6b279574
cdq
sub dword [esp + 0x40], eax
sbb dword [esp + 0x44], edx
cmp dword [esp + 0x44], 0
jl 0x6b279622
jle 0x6b279617
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
call fcn.6b2432b0
test eax, eax
je 0x6b27919e
mov dword [esp + 0x24], 0x2a
mov eax, dword [esp + 0x24]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x90]
lea esi, [esi]
xor ebx, ebx
mov dword [esp], esi
call fcn.6b2432b0
test eax, eax
jne 0x6b279171
cmp dword [esp + 0x24], 0x3fff
jbe 0x6b279048
test ebx, ebx
jne 0x6b279266
cmp dword [ebp + 0x8f78], 0xc8
je 0x6b279273
mov dword [esp], esi
call fcn.6b247dd0
test eax, eax
jne 0x6b2794e3
mov eax, dword [esi + 0x228]
test eax, eax
je 0x6b279273
mov edi, ebp
mov dword [esp + 0x4c], 1
mov ebp, dword [edi + 0x144]
test ebp, ebp
jne 0x6b279ae9
mov eax, dword [edi + 0xc8]
cmp eax, 0xc8
je 0x6b27999d
mov dword [esp + 8], eax
mov dword [esp + 4], str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov dword [esp], edi
call fcn.6b24c1c0
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x6b27923b
mov eax, dword [edi + 0x144]
test eax, eax
je 0x6b279258
mov dword [esi + 0x280], 1
mov eax, dword [edi + 0x144]
test eax, eax
je 0x6b279258
mov dword [esp], eax
call dword [0x6b28604c]
mov dword [edi + 0x144], 0
mov eax, dword [esp + 0x50]
mov dword [eax + 0x568], 0
mov dword [esp + 0x24], 0x38
jmp 0x6b279568
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x6b279610
mov ebx, dword [ebp + 0x144]
test ebx, ebx
je 0x6b279bcf
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x568]
cmp eax, 2
jne 0x6b27900e
mov edi, dword [esp + 0x50]
mov dword [edi + 0x568], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.TUNNEL_STATE_switched_to:__d_n
mov dword [esp], ebp
call fcn.6b24c140
mov ecx, dword [ebp + 0x144]
test ecx, ecx
je 0x6b279bcf
mov eax, dword [edi + 0x568]
jmp 0x6b27900e
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov ebx, 1
mov dword [esp], ebp
call fcn.6b24c1c0
jmp 0x6b279192
mov dword [esp + 0x28], 0
xor ebx, ebx
jmp 0x6b279192
xor ebx, ebx
jmp 0x6b27919e
mov ecx, dword [ebp + 0x190]
test ecx, ecx
je 0x6b279344
mov edx, dword [ebp + 0x8ed4]
test edx, edx
je 0x6b279344
mov dword [esi + 0x280], 1
xor ebx, ebx
mov dword [esp + 0x28], 0
jmp 0x6b279192
mov dword [esp + 4], str.Proxy_CONNECT_aborted
mov ebx, 1
mov dword [esp], ebp
call fcn.6b24c1c0
mov dword [esp + 0x28], 0
jmp 0x6b279192
mov ebx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x90], esi
mov esi, eax
add ebx, 1
jmp 0x6b279390
add esi, 1
add ebx, 1
cmp dword [esp + 0x68], esi
jle 0x6b279185
add edi, 1
cmp byte [ebx - 1], 0xa
mov dword [esp + 0x34], ebx
jne 0x6b279380
mov eax, dword [ebp + 0x35c]
test eax, eax
jne 0x6b279521
cmp dword [ebp + 0x340], 1
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], edi
sbb eax, eax
add eax, 3
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.6b24c430
add dword [ebp + 0x8f88], edi
add dword [ebp + 0x80], edi
test eax, eax
jne 0x6b2794e3
mov edx, dword [esp + 0x30]
movzx eax, byte [edx]
cmp al, 0xa
je 0x6b279751
cmp al, 0xd
je 0x6b279751
mov edx, dword [esp + 0x30]
add edi, edx
movzx eax, byte [edi]
mov byte [edi], 0
mov dword [esp + 8], 0x11
mov dword [esp + 4], edx
mov dword [esp], str.WWW_Authenticate:
mov byte [esp + 0x3f], al
call fcn.6b26ef10
test eax, eax
je 0x6b27943e
mov eax, dword [ebp + 0xc8]
cmp eax, 0x191
je 0x6b2794c4
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x13
mov dword [esp], str.Proxy_authenticate:
mov dword [esp + 4], eax
call fcn.6b26ef10
test eax, eax
je 0x6b27946b
mov eax, dword [ebp + 0xc8]
cmp eax, 0x197
je 0x6b2794c4
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0xf
mov dword [esp], str.Content_Length:
mov dword [esp + 4], eax
call fcn.6b26ef10
test eax, eax
je 0x6b2794f3
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
add eax, 0xf
mov dword [esp], eax
call fcn.6b2842e0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
movzx eax, byte [esp + 0x3f]
mov dword [esp + 0x30], ebx
mov byte [edi], al
xor edi, edi
jmp 0x6b279380
mov edx, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.6b248110
test eax, eax
je 0x6b2794b2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 8], str.close
mov dword [esp + 4], str.Connection:
mov dword [esp], eax
call fcn.6b248820
test eax, eax
je 0x6b2795c0
mov dword [esp + 0x4c], 1
jmp 0x6b2794b2
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.6b24c040
jmp 0x6b2793ab
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_timeout
mov dword [esp], ebp
call fcn.6b24c1c0
mov dword [esp + 0x24], 0x38
mov eax, dword [esp + 0x24]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x6c]
mov dword [esp + 0xc], edx
mov dword [esp], esi
mov dword [esp + 0x6c], 0
mov dword [esp + 4], eax
call fcn.6b261e50
cmp eax, 0xffffffff
je 0x6b279726
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], str.Read__zd_bytes_of_chunk__continue_n
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.6b24c140
jmp 0x6b279153
mov eax, dword [esp + 0x30]
mov dword [esp + 8], str.chunked
mov dword [esp + 4], str.Transfer_Encoding:
mov dword [esp], eax
call fcn.6b248820
test eax, eax
je 0x6b279641
mov dword [esp + 4], str.CONNECT_responded_chunked_n
mov dword [esp], ebp
call fcn.6b24c140
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.6b261e30
mov dword [esp + 0x58], 1
jmp 0x6b2794b2
mov edi, ebp
jmp 0x6b2791ec
cmp dword [esp + 0x40], 0
ja 0x6b279153
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
jmp 0x6b279192
mov eax, dword [esp + 0x30]
mov dword [esp + 8], str.close
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], eax
call fcn.6b248820
test eax, eax
jne 0x6b279517
mov eax, dword [esp + 0x54]
mov dword [esp + 4], str.HTTP_1._d__d
mov dword [esp + 0xc], eax
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_sscanf
cmp eax, 2
jne 0x6b2794b2
mov eax, dword [ebp + 0xc8]
mov dword [ebp + 0x8f78], eax
jmp 0x6b2794b2
mov ebx, dword [esp + 0x28]
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.6b2489e0
test eax, eax
jne 0x6b279984
mov dword [esp + 4], 0x6b2907e9
mov dword [esp], ebx
call fcn.6b2487a0
test eax, eax
jne 0x6b279984
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
lea eax, [edi + 0x8f8c]
mov dword [esp + 8], eax
call fcn.6b2484b0
test eax, eax
jne 0x6b279984
mov eax, dword [esp + 0x50]
mov dword [eax + 0x568], 1
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.6b24c140
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], 0
mov dword [eax + 0x568], 2
jmp 0x6b279153
cmp dword [ebp + 0xc8], 0x197
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x90]
je 0x6b279a03
cmp dword [ebp + 0x8f78], 0xc8
mov dword [esp + 0x28], 0
je 0x6b279ac0
mov eax, dword [esp + 0x50]
mov dword [eax + 0x568], 2
jmp 0x6b279153
mov eax, dword [esp + 0x98]
mov edi, ebp
movzx ebx, word [esp + 0x5c]
mov dword [esp + 4], str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov dword [esp], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.6b24c140
mov eax, dword [ebp + 0x144]
test eax, eax
je 0x6b2797da
mov dword [esp], eax
call dword [0x6b28604c]
mov dword [ebp + 0x144], 0
call fcn.6b248490
mov dword [esp + 0x24], 0x1b
test eax, eax
mov dword [esp + 0x28], eax
je 0x6b279568
mov eax, dword [esp + 0x98]
mov dword [esp + 8], ebx
mov dword [esp], str._s:_hu
mov dword [esp + 4], eax
call sym.libcurl.dll_curl_maprintf
test eax, eax
mov ebp, eax
je 0x6b279b47
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str.CONNECT
mov dword [esp], esi
call fcn.6b247fb0
mov dword [esp], ebp
mov dword [esp + 0x2c], eax
call dword [0x6b28604c]
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jne 0x6b279b0e
cmp dword [esi + 0x11c], 1
mov edx, 0x6b29072c
mov ecx, dword [esi + 0x240]
mov eax, 0x6b290730
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x98]
cmove eax, edx
mov edx, 0x6b290738
mov dword [esp + 0x2c], eax
mov eax, 0x6b290734
test ecx, ecx
cmove eax, edx
mov ecx, eax
mov eax, 0x6b290736
cmove eax, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str._s_s_s:_hu
call sym.libcurl.dll_curl_maprintf
test eax, eax
mov ebp, eax
je 0x6b279b47
mov dword [esp + 4], str.Host:
mov ebx, 0x6b290738
mov dword [esp], edi
call fcn.6b247a60
test eax, eax
je 0x6b279b24
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], edi
call fcn.6b247a60
mov ecx, 0x6b290738
mov dword [esp + 4], str.User_Agent:
mov dword [esp], edi
test eax, eax
mov eax, str.Proxy_Connection:_Keep_Alive_r_n
cmove ecx, eax
mov dword [esp + 0x24], ecx
call fcn.6b247a60
mov edx, 0x6b290738
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x6b279bb6
cmp dword [esi + 0x2b0], 0
mov eax, 0x6b290738
cmovne eax, dword [esi + 0x2b0]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.6b2487a0
cmp byte [ebx], 0
je 0x6b27996b
mov dword [esp + 0x24], eax
mov dword [esp], ebx
call dword [0x6b28604c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp], ebp
call dword [0x6b28604c]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x6b2796a3
mov dword [esp + 4], str.Failed_sending_CONNECT_to_proxy
mov dword [esp], edi
mov dword [esp + 0x24], eax
call fcn.6b24c1c0
jmp 0x6b279568
mov eax, dword [esp + 0x50]
mov dword [eax + 0x568], 2
mov eax, dword [esi + 0x2b0]
test eax, eax
je 0x6b2799be
mov dword [esp], eax
call dword [0x6b28604c]
mov dword [esi + 0x2b0], 0
mov dword [edi + 0x8ed8], 1
mov dword [esp + 4], str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [esp], edi
call fcn.6b24c140
mov dword [edi + 0x138], 0
mov dword [esp + 0x24], 0
mov dword [esi + 0x264], 0
jmp 0x6b279568
mov eax, dword [ebp + 0x8ee4]
test eax, eax
jne 0x6b27976c
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ebx, edx
or ebx, eax
jne 0x6b279b59
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], 0
test eax, eax
je 0x6b279784
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x24]
mov dword [ebp + 0x138], 1
mov dword [esp + 4], str._zd_bytes_of_chunk_left_n
mov dword [esp + 8], eax
mov dword [esp], ebp
call fcn.6b24c140
mov eax, dword [esp + 0x30]
cmp byte [eax + 1], 0xa
je 0x6b279ba7
lea eax, [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
add eax, 1
mov dword [esp + 4], eax
call fcn.6b261e50
cmp eax, 0xffffffff
je 0x6b279bd6
mov eax, dword [esp + 0x68]
mov dword [esp + 4], str.Read__zd_bytes_of_chunk__continue_n
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.6b24c140
mov dword [esp + 0x28], 2
jmp 0x6b279784
mov ebx, dword [esp + 0x24]
not ebx
add ebx, dword [esp + 0x68]
je 0x6b279784
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov dword [esp], ebp
call fcn.6b24c1c0
jmp 0x6b279784
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx + 0x138]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b262a20
mov dword [ebx + 0x138], 0xffffffff
jmp 0x6b2791fa
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [0x6b28604c]
mov eax, dword [esp + 0x2c]
jmp 0x6b2794e3
mov dword [esp + 4], ebp
mov dword [esp], str.Host:__s_r_n
call sym.libcurl.dll_curl_maprintf
test eax, eax
mov ebx, eax
jne 0x6b2798ce
mov dword [esp], ebp
call dword [0x6b28604c]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [0x6b28604c]
jmp 0x6b279568
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.Ignore__lld_bytes_of_response_body_n
mov dword [esp], ebp
call fcn.6b24c140
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x24]
cdq
sub dword [esp + 0x40], eax
sbb dword [esp + 0x44], edx
cmp dword [esp + 0x44], 0
jl 0x6b279b9a
jg 0x6b279ab3
cmp dword [esp + 0x40], 0
ja 0x6b279ab3
mov dword [esp + 0x28], 0
jmp 0x6b279784
add dword [esp + 0x30], 1
add dword [esp + 0x24], 1
jmp 0x6b279a6b
mov eax, dword [edi + 0x41c]
test eax, eax
je 0x6b279912
mov edx, dword [esi + 0x2b4]
jmp 0x6b279912
mov edi, ebp
jmp 0x6b2791fa
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.6b24c140
mov dword [esp + 0x28], 0
jmp 0x6b279784