Function at 0x466f60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [esi]
mov dword [ebp - 0x38], eax
mov edx, dword [edi + 0x1e0]
mov dword [ebp - 0x28], edx
cmp edx, eax
jne 0x466f8a
mov dword [ebp - 0x28], 0x36ee80
cmp dword [esi + ecx*4 + 0x4cc], 2
mov edx, dword [esi + ecx*4 + 0x140]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
je 0x467934
mov dword [esi + 0x210], eax
jmp 0x466fc0
cmp dword [esi + ecx*4 + 0x4cc], eax
je 0x4675b4
lea ebx, [edi + 0x5ac]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x467503
cmp dword [ebp - 0x24], 0
jne 0x4678d3
mov eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x130]
push eax
push ecx
call fcn.00449b70
push edx
push eax
call fcn.00449ba0
mov ecx, dword [ebp - 0x28]
sub ecx, eax
add esp, 0x10
test ecx, ecx
jle 0x46759a
cmp ecx, 0x3e8
jl 0x46702e
mov ecx, 0x3e8
mov edx, dword [ebp - 0x2c]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00448bc0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4674ca
test eax, eax
je 0x4674df
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4000
sub ecx, dword [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x2c]
call fcn.004497f0
add esp, 8
cmp eax, 0x51
je 0x4674f3
xor ecx, ecx
cmp eax, ecx
je 0x467085
mov dword [ebp - 8], ecx
jmp 0x4674df
mov eax, dword [ebp - 0xc]
cmp eax, ecx
jg 0x4670ba
mov dword [ebp - 8], ecx
cmp dword [edi + 0x158], ecx
je 0x4670b0
cmp dword [edi + 0x864c], ecx
je 0x4670b0
mov eax, esi
mov dword [eax + 0x210], 1
jmp 0x4674df
push str.Proxy_CONNECT_aborted
jmp 0x4674cf
add dword [ebp - 0x18], eax
cmp dword [ebp - 8], 1
jle 0x467169
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
lea ecx, [edi + 0x5ac]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x3c]
mov edx, esi
or edx, ecx
je 0x467108
cdq
sub esi, eax
sbb ecx, edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ecx
test ecx, ecx
jg 0x4674df
jl 0x4670fc
test esi, esi
jne 0x4674df
mov dword [ebp - 8], 0
jmp 0x4674df
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
push edx
mov dword [ebp - 0x14], 0
call fcn.00469270
add esp, 0xc
cmp eax, 0xffffffff
jne 0x467152
push str.chunk_reading_DONE_n
push edi
call fcn.00449240
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [ebp - 8], 0
mov dword [eax + ecx*4 + 0x4cc], 2
jmp 0x4674dc
mov edx, dword [ebp - 0x14]
push edx
push str.Read__zd_bytes_of_chunk__continue_n
push edi
call fcn.00449240
add esp, 0xc
jmp 0x4674df
mov dword [ebp - 0x14], ecx
cmp eax, ecx
jle 0x4674df
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
inc esi
cmp byte [eax], 0xa
mov dword [ebp - 0x20], esi
jne 0x467369
cmp dword [edi + 0x324], 0
je 0x4671a2
mov ecx, dword [ebp + 8]
push ecx
push esi
push ebx
push 1
mov ecx, edi
call fcn.00449970
add esp, 0x10
cmp dword [edi + 0x308], 0
mov eax, 2
je 0x4671b5
mov eax, 3
push ebx
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.00449640
add dword [edi + 0x8700], esi
add dword [edi + 0x80], esi
add esp, 8
test eax, eax
jne 0x467936
mov al, byte [ebx]
cmp al, 0xd
je 0x467381
cmp al, 0xa
je 0x467381
mov dl, byte [esi + ebx]
mov byte [ebp - 1], dl
mov eax, 0x11
mov ecx, ebx
mov edx, str.WWW_Authenticate:
mov byte [esi + ebx], 0
call fcn.00463580
test eax, eax
je 0x467216
mov eax, dword [edi + 0xc8]
cmp eax, 0x191
je 0x467238
mov eax, 0x13
mov ecx, ebx
mov edx, str.Proxy_authenticate:
call fcn.00463580
test eax, eax
je 0x467284
mov eax, dword [edi + 0xc8]
cmp eax, 0x197
jne 0x467284
xor ecx, ecx
cmp eax, 0x197
sete cl
mov eax, ebx
mov dword [ebp - 0x34], ecx
call fcn.0044fb70
mov esi, eax
test esi, esi
je 0x467618
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, esi
call fcn.00450360
push esi
mov dword [ebp - 0x34], eax
call dword [0x4ffbf4]
add esp, 0xc
cmp dword [ebp - 0x34], 0
jne 0x467839
mov esi, dword [ebp - 0x20]
jmp 0x46735a
mov eax, 0xf
mov ecx, ebx
mov edx, str.Content_Length:
call fcn.00463580
test eax, eax
je 0x4672b4
push 0xa
lea ecx, [ebx + 0xf]
push 0
push ecx
call fcn.0049a168
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x46735a
push str.close
mov ecx, str.Connection:
mov eax, ebx
call fcn.004508f0
add esp, 4
test eax, eax
je 0x4672d8
mov dword [ebp - 0x1c], 1
jmp 0x46735a
push str.chunked
mov ecx, str.Transfer_Encoding:
mov eax, ebx
call fcn.004508f0
add esp, 4
test eax, eax
je 0x46730f
push str.CONNECT_responded_chunked_n
push edi
call fcn.00449240
mov eax, dword [ebp + 8]
add esp, 8
mov dword [ebp - 0x30], 1
call fcn.00469260
jmp 0x46735a
push str.close
mov ecx, str.Proxy_Connection:
mov eax, ebx
call fcn.004508f0
add esp, 4
test eax, eax
je 0x467330
mov dword [ebp - 0x1c], 1
jmp 0x46735a
lea eax, [edi + 0xc8]
push eax
lea edx, [ebp - 0x38]
push edx
push str.HTTP_1._d__d
push ebx
call fcn.004c0f6b
add esp, 0x10
cmp eax, 2
jne 0x46735a
mov eax, dword [edi + 0xc8]
mov dword [edi + 0x86f0], eax
mov cl, byte [ebp - 1]
mov byte [esi + ebx], cl
mov ebx, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 0x20], esi
inc ebx
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0xc]
jl 0x467177
jmp 0x4674df
xor ecx, ecx
cmp dword [edi + 0xc8], 0x197
lea eax, [edi + 0x5ac]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
jne 0x46748e
cmp dword [edi + 0x865c], ecx
jne 0x46748e
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
mov dword [ebp - 8], 2
je 0x4673ff
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
push esi
push ecx
push str.Ignore__lld_bytes_of_response_body_n
push edi
call fcn.00449240
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
add esp, 0x10
cdq
sub dword [ebp - 0x40], eax
sbb esi, edx
mov dword [ebp - 0x3c], esi
test esi, esi
jg 0x4674b7
jl 0x4673f3
cmp dword [ebp - 0x40], 0
ja 0x4674b7
mov dword [ebp - 8], 0
jmp 0x4674b7
cmp dword [ebp - 0x30], ecx
je 0x467489
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov esi, 1
push edx
push str._zd_bytes_of_chunk_left_n
push edi
mov dword [edi + 0x100], esi
call fcn.00449240
add esp, 0xc
cmp byte [ebx + 1], 0xa
jne 0x467432
inc ebx
add dword [ebp - 0x14], esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
lea ecx, [ebx + 1]
push eax
push ecx
call fcn.00469270
add esp, 0xc
cmp eax, 0xffffffff
jne 0x467478
push str.chunk_reading_DONE_n
push edi
call fcn.00449240
mov eax, dword [ebp + 0xc]
mov edx, esi
add esp, 8
mov dword [ebp - 8], 0
mov dword [edx + eax*4 + 0x4cc], 2
jmp 0x4674b7
mov ecx, dword [ebp - 0xc]
push ecx
push str.Read__zd_bytes_of_chunk__continue_n
push edi
call fcn.00449240
jmp 0x4674b4
mov dword [ebp - 8], ecx
jmp 0x4674b7
cmp dword [edi + 0x86f0], 0xc8
mov dword [ebp - 8], ecx
jne 0x4674b7
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
dec eax
cmp eax, ecx
je 0x4674b7
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push edi
call fcn.004492c0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + edx*4 + 0x4cc], 2
jmp 0x4674df
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push edi
mov dword [ebp - 0x24], 1
call fcn.004492c0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00453c80
add esp, 4
test eax, eax
jne 0x467843
cmp dword [ebp - 0x18], 0x4000
mov esi, dword [ebp + 8]
jb 0x466fe3
cmp dword [ebp - 0x24], 0
jne 0x4678d3
cmp dword [edi + 0x86f0], 0xc8
je 0x46753b
push esi
call fcn.0044ff40
add esp, 4
test eax, eax
jne 0x467936
cmp dword [esi + 0x1b8], eax
je 0x46753b
mov dword [ebp - 0x1c], 1
jmp 0x467541
cmp dword [ebp - 0x1c], 0
je 0x46754e
cmp dword [edi + 0x10c], 0
jne 0x46784f
cmp dword [edi + 0x10c], 0
mov ebx, dword [ebp + 0xc]
je 0x467875
cmp dword [esi + ebx*4 + 0x4cc], 2
jne 0x467583
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push edi
mov dword [esi + ebx*4 + 0x4cc], 0
call fcn.00449240
add esp, 0xc
cmp dword [edi + 0x10c], 0
je 0x467875
mov ecx, dword [ebp + 0xc]
xor eax, eax
jmp 0x466fc0
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.004492c0
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, word [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push esi
push ebx
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push edi
call fcn.00449240
mov eax, dword [edi + 0x10c]
add esp, 0x10
test eax, eax
je 0x4675e9
push eax
call dword [0x4ffbf4]
add esp, 4
mov dword [edi + 0x10c], 0
call fcn.004505e0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x467618
push esi
push ebx
push str._s:_hu
call sym.KometaPanel.exe_curl_maprintf
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x467624
mov edx, dword [ebp - 0x18]
push edx
call dword [0x4ffbf4]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 8]
push 1
push eax
push str.CONNECT
call fcn.00450250
mov ecx, dword [ebp - 0x30]
add esp, 0xc
push ecx
mov ebx, eax
call dword [0x4ffbf4]
add esp, 4
test ebx, ebx
jne 0x46780c
cmp dword [esi + 0x124], 1
mov ecx, 0x4dad41
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0x4e1cec
je 0x467676
mov dword [ebp - 0x28], 0x4e1ce8
mov esi, dword [esi + 0x1d0]
mov edx, 0x4e07ec
test esi, esi
jne 0x467689
mov edx, ecx
jmp 0x46768e
mov ecx, 0x4e07f0
movzx eax, word [ebp + 0x14]
push eax
push edx
mov edx, dword [ebp + 0x10]
push edx
push ecx
push str._s_s_s:_hu
call sym.KometaPanel.exe_curl_maprintf
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4676c3
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4ffbf4]
add esp, 4
lea eax, [esi + 0x1b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ebx, str.Host:
call fcn.0044fb20
add esp, 4
test eax, eax
jne 0x46770d
push esi
push str.Host:__s_r_n
call sym.KometaPanel.exe_curl_maprintf
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x46770d
push esi
call dword [0x4ffbf4]
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
call dword [0x4ffbf4]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ebx, str.Proxy_Connection:
call fcn.0044fb20
add esp, 4
test eax, eax
jne 0x467726
mov dword [ebp - 0x30], str.Proxy_Connection:_Keep_Alive_r_n
push edi
mov ebx, str.User_Agent:
call fcn.0044fb20
add esp, 4
test eax, eax
jne 0x46774c
cmp dword [edi + 0x3e4], eax
je 0x46774c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x244]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x240]
test eax, eax
jne 0x46775e
mov eax, 0x4dad41
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
push edx
push eax
push esi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.004507a0
add esp, 0x20
cmp dword [ebp - 0x14], 0
mov ebx, eax
je 0x46779d
mov edx, dword [ebp - 0x14]
cmp byte [edx], 0
je 0x46779d
mov eax, edx
push eax
call dword [0x4ffbf4]
add esp, 4
push esi
call dword [0x4ffbf4]
add esp, 4
test ebx, ebx
jne 0x4677f5
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
push ecx
mov ebx, esi
call fcn.00450be0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4677f5
push 0x4e0188
push esi
call fcn.004507a0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4677f5
mov ebx, dword [ebp + 8]
push eax
lea edx, [edi + 0x8704]
push edx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.004505f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x467822
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.004492c0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4ffbf4]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [ecx + esi*4 + 0x4cc], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebx + edx*4 + 0x140]
mov eax, ebx
call fcn.00447cd0
mov eax, dword [ebp + 0xc]
mov dword [ebx + eax*4 + 0x140], 0xffffffff
mov esi, ebx
mov ebx, eax
mov eax, dword [edi + 0xc8]
cmp eax, 0xc8
je 0x4678df
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.004492c0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x4678aa
cmp dword [edi + 0x10c], 0
je 0x4678aa
mov dword [esi + 0x210], 1
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x4678c8
push eax
call dword [0x4ffbf4]
add esp, 4
mov dword [edi + 0x10c], 0
mov dword [esi + ebx*4 + 0x4cc], 0
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + ebx*4 + 0x4cc], 2
mov eax, dword [esi + 0x240]
test eax, eax
je 0x467908
push eax
call dword [0x4ffbf4]
add esp, 4
xor ebx, ebx
mov dword [esi + 0x240], ebx
jmp 0x46790a
xor ebx, ebx
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [esi + 0x240], ebx
push edi
mov dword [edi + 0x8650], 1
call fcn.00449240
mov dword [edi + 0x100], ebx
add esp, 8
mov dword [esi + 0x1f4], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret