Function at 0x5935c0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, 0x4c
push edi
mov dword [ebp - 0x24], 0
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x41c]
lea eax, [edi + eax*4]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x134]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x5940cf
cmp dword [ebx + 0x1f0], 2
jge 0x5940cf
mov byte [edi + 0x244], 0
nop word [eax + eax]
cmp dword [ebx + 0x1f0], 0
jne 0x593879
push dword [ebp + 0x14]
lea edi, [ebx + 0x1cc]
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_d
push esi
call fcn.00582550
push dword [esi + 0x128]
call dword [0x78e014]
push 0x100000
push edi
mov dword [esi + 0x128], 0
call fcn.00578820
mov eax, dword [ebp - 4]
add esp, 0x1c
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov cl, byte [eax + 0x24b]
cmp edi, dword [eax + 0x5c]
je 0x593690
push 0x3a
push edi
call fcn.00679380
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x742c18
mov eax, 0x74f7c4
cmove eax, edx
push eax
mov eax, 0x6da930
push edi
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.00586cf0
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x10], edi
test edi, edi
je 0x593f45
push 4
push str.Host
push dword [ebp - 4]
push esi
call fcn.0058c0b0
add esp, 0x10
test eax, eax
jne 0x5936f7
push edi
push str.Host:__s_r_n
call fcn.00586cf0
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x593f3b
push 1
push edi
push 0
push str.CONNECT
push dword [ebp - 4]
push esi
call fcn.0058e040
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x59384f
mov eax, dword [ebp - 4]
mov edx, 0x6dbb28
mov edi, 0x742c18
mov ecx, edi
cmp byte [eax + 0xb0], 1
mov eax, 0x6dbb24
cmovne edx, eax
mov eax, dword [esi + 0xc8c]
test eax, eax
cmovne ecx, eax
mov eax, edi
push ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
cmovne eax, ecx
push eax
push edx
push dword [ebp - 0x10]
lea eax, [ebx + 0x1cc]
push str.CONNECT__s_HTTP__s_r_n_s_s
push eax
call fcn.005787c0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x593841
push 0xa
push str.User_Agent
push dword [ebp - 4]
push esi
call fcn.0058c0b0
add esp, 0x10
test eax, eax
jne 0x5937ae
mov eax, dword [esi + 0x580]
test eax, eax
je 0x5937ae
push eax
lea eax, [ebx + 0x1cc]
push str.User_Agent:__s_r_n
push eax
call fcn.005787c0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x593841
push 0x10
push str.Proxy_Connection
push dword [ebp - 4]
push esi
call fcn.0058c0b0
add esp, 0x10
test eax, eax
jne 0x5937e1
push 0x1e
lea eax, [ebx + 0x1cc]
push str.Proxy_Connection:_Keep_Alive_r_n
push eax
call fcn.005787e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x593841
lea eax, [ebx + 0x1cc]
push eax
push 1
push esi
call fcn.0058bb40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x593841
push 2
lea eax, [ebx + 0x1cc]
push 0x6da030
push eax
call fcn.005787e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x593841
push dword [ebp + 0xc]
push eax
push eax
lea eax, [esi + 0xcf8]
push eax
lea eax, [ebx + 0x1cc]
push esi
push eax
call fcn.0058be30
mov edi, eax
mov dword [ebx + 0x1e0], 0
add esp, 0x18
test edi, edi
je 0x59384f
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.00582490
add esp, 8
push dword [ebp - 8]
call dword [0x78e014]
push dword [ebp - 0x10]
call dword [0x78e014]
add esp, 8
test edi, edi
jne 0x593f94
mov edi, dword [ebp - 4]
mov dword [ebx + 0x1f0], 1
push 1
push 0
push esi
call fcn.00583b10
add esp, 0xc
test edx, edx
jl 0x5940e4
jg 0x593898
test eax, eax
je 0x5940e4
push dword [ebp + 0xc]
push edi
call fcn.00582ff0
mov ecx, dword [ebp - 0xc]
add esp, 8
test al, al
jne 0x5938b8
cmp dword [ecx + 0x1a0], 0
je 0x5940cf
cmp dword [ecx + 0x1a0], 1
jne 0x593910
mov eax, dword [ebx + 0x1dc]
test eax, eax
jne 0x593f51
mov eax, dword [esi + 0x890]
mov dword [esi + 0x130], eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x4b8]
push esi
call fcn.0058fb80
add esp, 0xc
test eax, eax
jne 0x5940d1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x1dc], eax
test eax, eax
jne 0x593f51
mov dword [ecx + 0x1a0], eax
cmp dword [ebx + 0x1e4], 0
mov dword [ebp - 8], 0
je 0x5939be
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp - 0x20]
push esi
call fcn.005825d0
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x5940cf
push esi
call fcn.005920e0
add esp, 4
test eax, eax
jne 0x5940d8
test edi, edi
jne 0x5939b1
cmp dword [ebp - 0x14], edi
jle 0x593e79
cmp dword [ebx + 0x1e4], 2
jne 0x593aa7
mov ecx, dword [ebx + 0x1e8]
mov eax, ecx
mov edx, dword [ebx + 0x1ec]
or eax, edx
je 0x593a63
sub ecx, 1
mov dword [ebx + 0x1e8], ecx
sbb edx, edi
mov dword [ebx + 0x1ec], edx
js 0x5939a7
jg 0x593e67
test ecx, ecx
jne 0x593e67
mov dword [ebx + 0x1f0], 2
mov dword [ebx + 0x1e4], 0
mov edi, dword [ebp - 4]
push esi
call fcn.005920e0
add esp, 4
test eax, eax
jne 0x5940d8
cmp dword [ebp - 8], eax
jne 0x593fab
mov eax, dword [esi + 0xcdc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x593a08
push esi
call fcn.0058c290
add esp, 4
test eax, eax
jne 0x5940d1
cmp byte [edi + 0x246], al
je 0x593a08
mov byte [ebx + 0x1f5], 1
cmp byte [ebx + 0x1f5], 0
je 0x593a1e
cmp dword [esi + 0x128], 0
jne 0x593fb7
cmp dword [esi + 0x128], 0
je 0x593fd1
cmp dword [ebx + 0x1f0], 2
jne 0x593f26
mov edi, dword [esi + 0xc]
mov eax, dword [edi + 0x280]
test dword [eax + 0x4c], 0x4000
je 0x593ee2
push dword [eax]
push str._s_cannot_be_done_over_CONNECT
push esi
call fcn.00582490
add esp, 0xc
jmp 0x593f26
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call fcn.005a01e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x593e67
push str.chunk_reading_DONE
push esi
call fcn.00582550
add esp, 8
mov dword [ebx + 0x1e4], 0
jmp 0x593e5d
push 1
lea eax, [ebp + 0xb]
push eax
lea edi, [ebx + 0x1bc]
push edi
call fcn.005787e0
add esp, 0xc
test eax, eax
jne 0x593f9d
cmp byte [ebp + 0xb], 0xa
jne 0x593e67
inc dword [ebx + 0x1e0]
push edi
call fcn.00578860
mov edi, eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.00578850
push eax
push edi
push 1
push esi
mov dword [ebp - 0x10], eax
call fcn.005823f0
add esp, 0x18
cmp byte [esi + 0x6b8], 0
jne 0x593b37
push dword [ebp - 0x10]
xor ecx, ecx
cmp byte [esi + 0x6a2], cl
push edi
setne cl
xor eax, eax
cmp dword [ebx + 0x1e0], 1
sete al
lea eax, [eax*4 + 0xa]
or ecx, eax
push ecx
push esi
call fcn.005823e0
add esp, 0x10
test eax, eax
jne 0x5940d1
mov eax, dword [ebp - 0x10]
cdq
add dword [esi + 0xcf0], eax
adc dword [esi + 0xcf4], edx
mov al, byte [edi]
cmp al, 0xd
je 0x593d95
cmp al, 0xa
je 0x593d95
push 0x11
push str.WWW_Authenticate:
push edi
call fcn.00588630
add esp, 0xc
test eax, eax
je 0x593b7d
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x191
je 0x593ba1
push 0x13
push str.Proxy_authenticate:
push edi
call fcn.00588630
add esp, 0xc
test eax, eax
je 0x593bf5
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x197
jne 0x593bf5
push edi
call fcn.0058c1c0
mov edi, eax
add esp, 4
test edi, edi
je 0x593f45
cmp dword [ebp - 0x10], 0x197
push edi
sete cl
movzx ecx, cl
push ecx
push esi
call fcn.0058dc90
push edi
mov dword [ebp - 0x10], eax
call dword [0x78e014]
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jne 0x5940d1
lea eax, [ebx + 0x1bc]
push eax
call fcn.00578870
add esp, 4
jmp 0x593e67
push 0xf
push str.Content_Length:
push edi
call fcn.00588630
add esp, 0xc
test eax, eax
je 0x593c68
mov ecx, dword [esi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x593c3d
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push esi
call fcn.00582550
add esp, 0xc
lea eax, [ebx + 0x1bc]
push eax
call fcn.00578870
add esp, 4
jmp 0x593e67
lea eax, [ebx + 0x1e8]
push eax
push 0xa
lea eax, [edi + 0xf]
push 0
push eax
call fcn.00595aa0
add esp, 0x10
lea eax, [ebx + 0x1bc]
push eax
call fcn.00578870
add esp, 4
jmp 0x593e67
push 5
push str.close
push 0xb
push str.Connection:
push edi
call fcn.0058c120
add esp, 0x14
test al, al
jne 0x593d7a
push 0x12
push str.Transfer_Encoding:
push edi
call fcn.00588630
add esp, 0xc
test eax, eax
je 0x593d21
mov ecx, dword [esi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x593cd3
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push esi
call fcn.00582550
add esp, 0xc
lea eax, [ebx + 0x1bc]
push eax
call fcn.00578870
add esp, 4
jmp 0x593e67
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push edi
call fcn.0058c120
add esp, 0x14
test al, al
je 0x593d81
push str.CONNECT_responded_chunked
push esi
call fcn.00582550
push esi
mov byte [ebx + 0x1f4], 1
call fcn.005a01b0
add esp, 0xc
lea eax, [ebx + 0x1bc]
push eax
call fcn.00578870
add esp, 4
jmp 0x593e67
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push edi
call fcn.0058c120
add esp, 0x14
test al, al
jne 0x593d7a
lea eax, [esi + 0xf0]
push eax
lea eax, [ebp - 0x24]
push eax
push str.HTTP_1._d__d
push edi
call fcn.0054f560
add esp, 0x10
cmp eax, 2
jne 0x593d81
mov eax, dword [esi + 0xf0]
mov dword [esi + 0xcdc], eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.00578870
add esp, 4
jmp 0x593e67
mov byte [ebx + 0x1f5], 1
lea eax, [ebx + 0x1bc]
push eax
call fcn.00578870
add esp, 4
jmp 0x593e67
cmp dword [esi + 0xf0], 0x197
jne 0x593e45
cmp byte [esi + 0xcc9], 0
jne 0x593e45
mov edx, dword [ebx + 0x1e8]
mov eax, edx
mov ecx, dword [ebx + 0x1ec]
or eax, ecx
mov dword [ebx + 0x1e4], 2
je 0x593ded
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body
push esi
call fcn.00582550
add esp, 0x10
cmp dword [ebx + 0x1e4], 0
jne 0x593924
jmp 0x593e4f
cmp byte [ebx + 0x1f4], 0
je 0x593e45
push str.Ignore_chunked_response_body
push esi
call fcn.00582550
lea eax, [edi + 1]
mov byte [esi + 0x140], 1
cmp byte [eax], 0xa
cmove edi, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [edi + 1]
push eax
push esi
call fcn.005a01e0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x593dde
push str.chunk_reading_DONE
push esi
call fcn.00582550
add esp, 8
mov dword [ebx + 0x1f0], 2
mov dword [ebx + 0x1e4], 0
mov eax, dword [ebx + 0x1e8]
or eax, dword [ebx + 0x1ec]
jne 0x593e67
mov dword [ebx + 0x1f0], 2
cmp dword [ebx + 0x1e4], 0
jne 0x593924
jmp 0x5939bb
cmp dword [esi + 0x16c], 0
je 0x593ebb
cmp dword [esi + 0x94c], 0
je 0x593ebb
cmp dword [esi + 0xc8c], 0
je 0x593ebb
mov edi, dword [ebp - 4]
push str.Proxy_CONNECT_connection_closed
push esi
mov byte [edi + 0x244], 1
call fcn.00582550
add esp, 8
mov dword [ebx + 0x1e4], 0
jmp 0x5939be
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp - 8], 1
call fcn.00582490
mov edi, dword [ebp - 4]
add esp, 8
mov dword [ebx + 0x1e4], 0
jmp 0x5939be
mov edi, dword [edi + 0x41c]
lea eax, [edi + 0x1bc]
push eax
call fcn.00578870
add esp, 4
mov dword [edi + 0x1f0], 0
mov dword [edi + 0x1e4], 1
mov dword [edi + 0x1e8], 0
mov dword [edi + 0x1ec], 0
mov byte [edi + 0x1f5], 0
cmp dword [esi + 0x128], 0
je 0x593fd1
mov edi, dword [ebp - 4]
jmp 0x593620
push edi
call dword [0x78e014]
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [esi + 0x130]
push dword [edi + 0x29c]
push esi
call fcn.005829e0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x593f85
push dword [ebp + 0xc]
push dword [esi + 0x130]
push 2
push esi
call fcn.005823f0
add esp, 0x10
mov eax, dword [ebp + 0xc]
sub dword [ebx + 0x1dc], eax
add dword [esi + 0x130], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large
push esi
call fcn.00582490
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
push esi
call fcn.00582f70
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [eax], 0xffffffff
jmp 0x593fd4
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0xcdc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x594078
cmp byte [ebx + 0x1f5], 0
je 0x594014
cmp dword [esi + 0x128], 0
je 0x594014
push str.Connect_me_again_please
push esi
mov byte [edi + 0x244], 1
call fcn.00582550
push esi
call fcn.00594130
jmp 0x594032
push dword [esi + 0x128]
call dword [0x78e014]
push 2
push edi
mov dword [esi + 0x128], 0
call fcn.00583050
add esp, 0xc
mov dword [ebx + 0x1f0], 0
cmp byte [edi + 0x244], 0
jne 0x5940cf
lea eax, [ebx + 0x1bc]
push eax
call fcn.005787f0
push dword [esi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.00582490
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1f0], 2
push dword [esi + 0xc8c]
call dword [0x78e014]
push dword [esi + 0xcdc]
mov dword [esi + 0xc8c], 0
push str.Proxy_replied__d_to_CONNECT_request
push esi
mov word [esi + 0x950], 1
call fcn.00582550
lea eax, [ebx + 0x1bc]
mov byte [esi + 0x140], 0
push eax
mov byte [edi + 0x251], 0
call fcn.005787f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
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.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.00582490
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret