Function at 0x626670
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebx + edi*4 + 0x56c], 2
mov ecx, dword [ebx + edi*4 + 0x190]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
je 0x6270b8
mov dword [ebx + 0x2c0], eax
cmp dword [ebx + edi*4 + 0x56c], eax
jne 0x62690f
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push edi
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.0060b660
mov eax, dword [esi + 0x10c]
push eax
call dword [0x6c5228]
add esp, 0x14
mov dword [esi + 0x10c], 0
call fcn.00621690
mov dword [ebp - 4], eax
test eax, eax
je 0x626ee4
mov ecx, dword [ebp + 0x10]
push edi
push ecx
push str._s:_hu
call fcn.006102f0
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x626ed8
push 1
mov edx, eax
push edx
push str.CONNECT
push ebx
call fcn.006212b0
mov edi, eax
mov eax, dword [ebp - 0x10]
push eax
call dword [0x6c5228]
add esp, 0x14
test edi, edi
jne 0x6268eb
cmp dword [ebx + 0xe8], 1
mov eax, 0x688621
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0x685474
je 0x626766
mov dword [ebp - 0x1c], 0x685478
mov edi, dword [ebp + 0x10]
mov eax, dword [ebx + 0x280]
cmp edi, dword [ebx + 0x98]
je 0x626788
push 0x3a
push edi
call fcn.005e3430
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x626798
mov ecx, 0x6903b0
mov eax, str.___:
jmp 0x62679f
mov ecx, 0x688621
mov eax, ecx
mov edx, dword [ebp + 0x14]
push edx
push ecx
push edi
push eax
push str._s_s_s:_hu
call fcn.006102f0
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x20], edi
test edi, edi
je 0x626ef0
push str.Host:
push ebx
call fcn.00620d10
add esp, 8
test eax, eax
jne 0x6267eb
push edi
push str.Host:__s_r_n
call fcn.006102f0
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x626f08
push str.Proxy_Connection:
push ebx
call fcn.00620d10
add esp, 8
test eax, eax
jne 0x626804
mov dword [ebp - 0xc], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent:
push ebx
call fcn.00620d10
add esp, 8
test eax, eax
jne 0x626827
cmp dword [esi + 0x49c], eax
je 0x626827
mov eax, dword [ebx + 0x318]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x314]
test ecx, ecx
jne 0x626836
mov ecx, 0x688621
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x626842
mov eax, 0x688621
mov edx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ecx
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push edx
call fcn.00621fd0
add esp, 0x20
cmp dword [ebp - 0x10], 0
mov edi, eax
je 0x62687a
mov eax, dword [ebp - 0x10]
push eax
call dword [0x6c5228]
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x6c5228]
add esp, 4
test edi, edi
jne 0x6268d2
mov edx, dword [ebp - 4]
push edx
push 1
push ebx
call fcn.006220c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x6268d2
mov eax, dword [ebp - 4]
push 0x68f698
push eax
call fcn.00621fd0
mov edi, eax
add esp, 8
test edi, edi
jne 0x6268d2
mov ecx, dword [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebp - 4]
lea edx, [esi + 0x4854]
push edx
push ebx
push eax
call fcn.006216d0
add esp, 0x14
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x6268eb
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0060b6e0
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
call fcn.006216a0
add esp, 4
test edi, edi
jne 0x626f27
mov edx, dword [ebp + 0xc]
mov dword [ebx + edx*4 + 0x56c], 1
mov edi, edx
push 1
push 0
push esi
call fcn.0060d690
add esp, 0xc
test edx, edx
jl 0x626f30
jg 0x62692e
test eax, eax
je 0x626f30
cmp dword [ebp + 0x18], 0
jne 0x626946
push edi
push ebx
call fcn.0060e1d0
add esp, 8
test eax, eax
je 0x6270b8
mov edi, dword [esi + 0x6cc]
xor eax, eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [ebp - 0xc], 0
je 0x626e31
push ebx
call fcn.00627f10
add esp, 4
test eax, eax
jne 0x626f4a
mov eax, dword [esi + 0x6cc]
add eax, 0x4000
cmp dword [ebp - 4], eax
jae 0x626f56
push 1
push 0
push esi
call fcn.0060d690
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
test edx, edx
jl 0x626dd8
jg 0x6269b4
test eax, eax
jbe 0x626dd8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push ecx
push 1
push edx
push eax
push ebx
call fcn.0060b3e0
add esp, 0x14
cmp eax, 0x51
jne 0x626a1b
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jg 0x6269e7
jl 0x6269e2
cmp dword [ebp - 0x40], 0x3e8
jae 0x6269e7
mov eax, dword [ebp - 0x40]
jmp 0x6269ee
mov eax, 0x3e8
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x24]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.005ffc90
add esp, 0x14
cmp eax, 0xffffffff
je 0x626dec
cmp dword [ebp - 0x10], 0x4000
jb 0x626960
jmp 0x626e31
test eax, eax
jne 0x626e31
cmp dword [ebp - 0x2c], eax
jle 0x626df3
mov eax, 1
add dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], eax
jle 0x626ac1
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x34]
mov edx, dword [esi + 0x6cc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], edx
je 0x626a79
or eax, 0xffffffff
add dword [ebp - 0x38], eax
adc dword [ebp - 0x34], eax
js 0x626e31
jg 0x626960
cmp dword [ebp - 0x38], 0
jbe 0x626e31
jmp 0x626960
lea ecx, [ebp - 0x20]
push ecx
push 1
push edx
push ebx
mov dword [ebp - 0x20], 0
call fcn.00631190
add esp, 0x10
cmp eax, 0xffffffff
jne 0x626960
push str.chunk_reading_DONE_n
push esi
call fcn.0060b660
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0xc], 0
mov dword [ebx + eax*4 + 0x56c], 2
jmp 0x626960
mov ecx, dword [ebp - 4]
add dword [ebp - 8], eax
cmp byte [ecx], 0xa
je 0x626ad4
add dword [ebp - 4], eax
jmp 0x626a09
cmp dword [esi + 0x3b4], 0
je 0x626aee
mov edx, dword [ebp - 8]
push ebx
push edx
push edi
push 1
push esi
call fcn.0060b580
add esp, 0x14
cmp dword [esi + 0x39c], 0
mov eax, 2
je 0x626b01
mov eax, 3
mov ecx, dword [ebp - 8]
push ecx
push edi
push eax
push ebx
call fcn.0060bae0
mov ecx, dword [ebp - 8]
add dword [esi + 0x4850], ecx
add dword [esi + 0x80], ecx
add esp, 0x10
test eax, eax
jne 0x6270ba
mov al, byte [edi]
cmp al, 0xd
je 0x626cef
cmp al, 0xa
je 0x626cef
push 0x11
mov edx, ecx
push edi
push str.WWW_Authenticate:
mov byte [edx + edi], 0
call fcn.006256b0
add esp, 0xc
test eax, eax
je 0x626b60
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x626b81
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.006256b0
add esp, 0xc
test eax, eax
je 0x626bcd
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x626bcd
xor ecx, ecx
cmp eax, 0x197
sete cl
push edi
mov dword [ebp - 0x20], ecx
call fcn.00620d80
mov edi, eax
add esp, 4
test edi, edi
je 0x626ee4
mov edx, dword [ebp - 0x20]
push edi
push edx
push ebx
call fcn.006213c0
push edi
mov dword [ebp - 0x20], eax
call dword [0x6c5228]
add esp, 0x10
cmp dword [ebp - 0x20], 0
je 0x626cda
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push edi
push str.Content_Length:
call fcn.006256b0
add esp, 0xc
test eax, eax
je 0x626c1c
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
je 0x626f70
push 0xa
push 0
add edi, 0xf
push edi
call fcn.005eed02
add esp, 0xc
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
jmp 0x626cda
push str.close
push str.Connection:
push edi
call fcn.00621950
add esp, 0xc
test eax, eax
je 0x626c3f
mov dword [ebp - 0x14], 1
jmp 0x626cda
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.00621950
add esp, 0xc
test eax, eax
je 0x626c91
mov eax, 0x51eb851f
imul dword [esi + 0xc8]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x626f8b
push str.CONNECT_responded_chunked_n
push esi
call fcn.0060b660
push ebx
mov dword [ebp - 0x28], 1
call fcn.00631170
add esp, 0xc
jmp 0x626cda
push str.close
push str.Proxy_Connection:
push edi
call fcn.00621950
add esp, 0xc
test eax, eax
je 0x626cb1
mov dword [ebp - 0x14], 1
jmp 0x626cda
lea ebx, [esi + 0xc8]
push ebx
lea edx, [ebp - 0x30]
push edx
push str.HTTP_1._d__d
push edi
call fcn.005e355c
add esp, 0x10
cmp eax, 2
jne 0x626cd7
mov eax, dword [ebx]
mov dword [esi + 0x4840], eax
mov ebx, dword [ebp + 8]
mov edi, dword [esi + 0x6cc]
mov dword [ebp - 8], 0
mov dword [ebp - 4], edi
jmp 0x626a09
mov ecx, dword [esi + 0x6cc]
xor eax, eax
cmp dword [esi + 0xc8], 0x197
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
jne 0x626dc2
cmp dword [esi + 0x4788], eax
jne 0x626dc2
mov edx, dword [ebp - 0x38]
or edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], 2
je 0x626d51
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push eax
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.0060b660
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebx + edx*4 + 0x56c], 2
jmp 0x626960
cmp dword [ebp - 0x28], eax
je 0x626dc2
push str.Ignore_chunked_response_body_n
push esi
call fcn.0060b660
add esp, 8
mov dword [esi + 0x100], 1
cmp byte [edi + 1], 0xa
jne 0x626d75
inc edi
lea edx, [ebp - 0x2c]
push edx
push 1
lea eax, [edi + 1]
push eax
push ebx
call fcn.00631190
add esp, 0x10
cmp eax, 0xffffffff
jne 0x626dc5
push str.chunk_reading_DONE_n
push esi
call fcn.0060b660
mov ecx, dword [ebp + 0xc]
mov edx, ecx
mov dword [ebx + ecx*4 + 0x56c], 2
add esp, 8
mov dword [ebp - 0xc], 0
mov dword [ebx + edx*4 + 0x56c], 2
jmp 0x626960
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov dword [ebx + edx*4 + 0x56c], 2
jmp 0x626960
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0060b6e0
mov dword [ebp - 0x18], 2
jmp 0x626e2e
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
jmp 0x626e21
cmp dword [esi + 0x158], 0
je 0x626e1c
cmp dword [esi + 0x4778], 0
je 0x626e1c
push str.Proxy_CONNECT_connection_closed_n
push esi
mov dword [ebx + 0x2c0], 1
call fcn.0060b660
jmp 0x626e2e
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp - 0x18], 1
call fcn.0060b6e0
add esp, 8
push ebx
call fcn.00627f10
add esp, 4
test eax, eax
jne 0x626f4a
cmp dword [ebp - 0x18], eax
jne 0x626f3e
cmp dword [esi + 0x4840], 0xc8
je 0x626e79
push ebx
call fcn.00621df0
add esp, 4
test eax, eax
jne 0x6270ba
cmp dword [ebx + 0x25c], eax
je 0x626e79
mov dword [ebp - 0x14], 1
jmp 0x626e7f
cmp dword [ebp - 0x14], 0
je 0x626e8c
cmp dword [esi + 0x10c], 0
jne 0x626fac
cmp dword [esi + 0x10c], 0
mov edi, dword [ebp + 0xc]
je 0x626fcb
cmp dword [ebx + edi*4 + 0x56c], 2
jne 0x626ec1
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ebx + edi*4 + 0x56c], 0
call fcn.0060b660
add esp, 0xc
cmp dword [esi + 0x10c], 0
je 0x626fcb
mov edi, dword [ebp + 0xc]
xor eax, eax
jmp 0x6266b3
mov eax, dword [ebp - 4]
push eax
call fcn.006216a0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call fcn.006216a0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x6c5228]
mov edx, dword [ebp - 4]
push edx
call fcn.006216a0
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0060b6e0
add esp, 8
pop edi
pop esi
mov eax, 0x38
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.CONNECT_response_too_large_
push esi
call fcn.0060b6e0
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push str.Content_Length:_in__03d_response
push esi
call fcn.0060b6e0
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xc8]
push ecx
push str.Transfer_Encoding:_in__03d_response
push esi
call fcn.0060b6e0
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx + edi*4 + 0x190]
push edx
push ebx
call fcn.0060e050
add esp, 8
mov dword [ebx + edi*4 + 0x190], 0xffffffff
cmp dword [esi + 0xc8], 0xc8
je 0x627074
cmp dword [ebp - 0x14], 0
je 0x627004
cmp dword [esi + 0x10c], 0
je 0x627004
push str.Connect_me_again_please_n
push esi
mov dword [ebx + 0x2c0], 1
call fcn.0060b660
add esp, 8
jmp 0x62703f
mov eax, dword [esi + 0x10c]
push eax
call dword [0x6c5228]
push 2
push ebx
mov dword [esi + 0x10c], 0
call fcn.0060e180
mov ecx, dword [ebx + edi*4 + 0x190]
push ecx
push ebx
call fcn.0060e050
add esp, 0x14
mov dword [ebx + edi*4 + 0x190], 0xffffffff
mov dword [ebx + edi*4 + 0x56c], 0
cmp dword [ebx + 0x2c0], 0
jne 0x6270b8
mov edx, dword [esi + 0xc8]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0060b6e0
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + edi*4 + 0x56c], 2
mov eax, dword [ebx + 0x314]
push eax
call dword [0x6c5228]
xor edi, edi
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x314], edi
push esi
mov dword [esi + 0x477c], 1
call fcn.0060b660
mov dword [esi + 0x100], edi
add esp, 0xc
mov dword [ebx + 0x2a4], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret