Function at 0x59edc0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x34
mov ecx, dword [esp + 0x3c]
xor al, al
push ebx
push ebp
mov ebp, dword [esp + 0x40]
xor bl, bl
push esi
push edi
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
mov edi, dword [ebp + ecx*4 + 0x154]
lea ecx, [ecx*4 + 0x554]
mov esi, dword [ebp]
add ecx, ebp
mov dword [esp + 0x34], edi
movlpd qword [esp + 0x38], xmm0
mov byte [esp + 0x11], bl
cmp dword [ecx], 2
mov byte [esp + 0x12], al
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], ecx
je 0x59f80f
mov byte [ebp + 0x265], al
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
nop
cmp dword [ecx], 0
jne 0x59f066
push dword [esp + 0x54]
push dword [esp + 0x54]
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.0057e3a0
push dword [esi + 0x104]
call dword [0x6e7aa4]
add esp, 0x14
mov dword [esi + 0x104], 0
call fcn.005827c0
mov ebx, eax
test ebx, ebx
je 0x59f6d2
push dword [esp + 0x54]
push dword [esp + 0x54]
push str._s:_hu
call fcn.00588950
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x59f6c9
push 1
push ebp
push str.CONNECT
push dword [esp + 0x54]
call fcn.00583330
push ebp
mov edi, eax
call dword [0x6e7aa4]
add esp, 0x14
test edi, edi
jne 0x59f043
mov ecx, dword [esp + 0x48]
mov edx, 0x6a0efc
push dword [esp + 0x54]
mov eax, 0x6314f8
mov ebp, 0x64346a
mov dword [esp + 0x30], ebp
cmp dword [ecx + 0x138], 1
mov cl, byte [ecx + 0x256]
cmovne eax, edx
test cl, cl
mov dword [esp + 0x2c], eax
mov edx, ebp
mov eax, 0x6957a4
cmove eax, edx
push eax
push dword [esp + 0x58]
mov eax, 0x6932b8
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.00588950
mov edi, eax
add esp, 0x14
mov dword [esp + 0x18], edi
test edi, edi
je 0x59f6c9
push 0x631248
push dword [esp + 0x4c]
call fcn.00582ce0
add esp, 8
test eax, eax
jne 0x59ef49
push edi
push str.Host:__s_r_n
call fcn.00588950
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x59f6a2
push str.Proxy_Connection:
push dword [esp + 0x4c]
call fcn.00582ce0
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x64346a
push str.User_Agent:
push dword [esp + 0x54]
cmovne ecx, eax
mov dword [esp + 0x48], ecx
call fcn.00582ce0
add esp, 0x10
test eax, eax
jne 0x59ef95
cmp dword [esi + 0x368], eax
je 0x59ef95
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x294]
mov dword [esp + 0x2c], eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov ecx, 0x64346a
push dword [esp + 0x30]
mov eax, dword [eax + 0x290]
test eax, eax
cmovne ecx, eax
push ecx
push ebp
push dword [esp + 0x38]
push edi
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.00582980
add esp, 0x20
mov edi, eax
test ebp, ebp
je 0x59efdc
cmp byte [ebp], 0
je 0x59efdc
push ebp
call dword [0x6e7aa4]
add esp, 4
push dword [esp + 0x18]
call dword [0x6e7aa4]
add esp, 4
test edi, edi
jne 0x59f02f
mov ebp, dword [esp + 0x48]
push ebx
push 1
push ebp
call fcn.005829f0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x59f02f
push 0x697990
push ebx
call fcn.00582980
mov edi, eax
add esp, 8
test edi, edi
jne 0x59f02f
push dword [esp + 0x4c]
push eax
lea eax, [esi + 0x86e4]
push eax
push ebp
push ebx
call fcn.005827d0
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x59f043
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0057e2d0
add esp, 8
push ebx
call fcn.005827a0
add esp, 4
test edi, edi
jne 0x59f6bf
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.0057f360
add esp, 0xc
test eax, eax
jle 0x59f819
cmp byte [esp + 0x58], 0
jne 0x59f099
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.0057dc30
add esp, 0x10
test eax, eax
je 0x59f80f
lea eax, [esi + 0x554]
mov dword [esp + 0x2c], 0
mov ecx, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
mov edi, eax
xor ebx, ebx
test ecx, ecx
je 0x59f47c
cmp dword [esp + 0x30], 0
jne 0x59f7bf
push 1
push 0
push esi
call fcn.0057f360
mov ecx, eax
add esp, 0xc
test ecx, ecx
jle 0x59f6ec
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x40]
call fcn.0057dc30
add esp, 0x10
cmp eax, 0xffffffff
je 0x59f62c
test eax, eax
je 0x59f459
lea eax, [esp + 0x1c]
push eax
mov eax, 0x4000
sub eax, dword [esp + 0x30]
push eax
push dword [esp + 0x30]
push dword [esp + 0x40]
push ebp
call fcn.0057e480
add esp, 0x14
cmp eax, 0x51
je 0x59f46a
test eax, eax
je 0x59f146
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x59f459
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x59f199
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x140], eax
je 0x59f17e
cmp dword [esi + 0x8634], eax
je 0x59f17e
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [ebp + 0x265], 1
call fcn.0057e3a0
add esp, 8
jmp 0x59f459
push str.Proxy_CONNECT_aborted
push esi
mov dword [esp + 0x38], 1
call fcn.0057e2d0
add esp, 8
jmp 0x59f459
add dword [esp + 0x2c], ecx
cmp dword [esp + 0x18], 1
jle 0x59f24f
mov eax, dword [esp + 0x20]
lea edx, [esi + 0x554]
or eax, dword [esp + 0x24]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
je 0x59f1f8
mov eax, ecx
mov ecx, dword [esp + 0x20]
cdq
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
sbb eax, edx
mov dword [esp + 0x24], eax
test eax, eax
jg 0x59f459
jl 0x59f1ed
test ecx, ecx
jne 0x59f459
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x59f459
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push ecx
push edx
push ebp
call fcn.005a0720
add esp, 0x10
cmp eax, 0xffffffff
jne 0x59f238
push str.chunk_reading_DONE_n
push esi
call fcn.0057e3a0
add esp, 8
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [eax], 2
jmp 0x59f459
push dword [esp + 0x38]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0057e3a0
add esp, 0xc
jmp 0x59f459
xor ebp, ebp
mov dword [esp + 0x38], ebp
test ecx, ecx
jle 0x59f455
mov eax, dword [esp + 0x28]
inc ebx
cmp byte [eax], 0xa
jne 0x59f443
cmp byte [esi + 0x2d0], 0
je 0x59f285
push dword [esp + 0x48]
push ebx
push edi
push 1
push esi
call fcn.0057e1e0
add esp, 0x14
xor eax, eax
cmp byte [esi + 0x2c4], al
push ebx
setne al
push edi
add eax, 2
push eax
push dword [esp + 0x54]
call fcn.0057e1b0
add dword [esi + 0x86e0], ebx
add esp, 0x10
add dword [esi + 0x80], ebx
test eax, eax
jne 0x59f82c
mov al, byte [edi]
cmp al, 0xd
je 0x59f4bf
cmp al, 0xa
je 0x59f4bf
mov al, byte [ebx + edi]
lea ebp, [ebx + edi]
push 0x11
push edi
push str.WWW_Authenticate:
mov byte [esp + 0x1f], al
mov byte [ebp], 0
call fcn.00589ed0
add esp, 0xc
test eax, eax
je 0x59f2f8
mov ebx, dword [esi + 0xc8]
cmp ebx, 0x191
je 0x59f31a
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.00589ed0
add esp, 0xc
test eax, eax
je 0x59f362
mov ebx, dword [esi + 0xc8]
cmp ebx, 0x197
jne 0x59f362
push edi
call fcn.00582e80
mov edi, eax
add esp, 4
test edi, edi
je 0x59f6d2
cmp ebx, 0x197
push edi
sete al
movzx eax, al
push eax
push dword [esp + 0x50]
call fcn.00583110
push edi
mov ebx, eax
call dword [0x6e7aa4]
add esp, 0x10
test ebx, ebx
je 0x59f42b
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x34
ret
push 0xf
push edi
push str.Content_Length:
call fcn.00589ed0
add esp, 0xc
test eax, eax
je 0x59f393
push 0xa
lea eax, [edi + 0xf]
push 0
push eax
call fcn.00560ad3
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x59f42b
push str.close
push str.Connection:
push edi
call fcn.00582db0
add esp, 0xc
test al, al
je 0x59f3b1
mov byte [esp + 0x11], 1
jmp 0x59f42b
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.00582db0
add esp, 0xc
test al, al
je 0x59f3e6
push str.CONNECT_responded_chunked_n
push esi
call fcn.0057e3a0
push dword [esp + 0x50]
mov byte [esp + 0x1e], 1
call fcn.005a0700
add esp, 0xc
jmp 0x59f42b
push str.close
push str.Proxy_Connection:
push edi
call fcn.00582db0
add esp, 0xc
test al, al
je 0x59f404
mov byte [esp + 0x11], 1
jmp 0x59f42b
lea ebx, [esi + 0xc8]
push ebx
lea eax, [esp + 0x44]
push eax
push str.HTTP_1._d__d
push edi
call fcn.0043235b
add esp, 0x10
cmp eax, 2
jne 0x59f42b
mov eax, dword [ebx]
mov dword [esi + 0x86d0], eax
mov al, byte [esp + 0x13]
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov byte [ebp], al
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
lea edi, [eax + 1]
inc ebp
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ebp
cmp ebp, ecx
jl 0x59f261
mov ebp, dword [esp + 0x48]
push ebp
call fcn.00586e70
add esp, 4
test eax, eax
jne 0x59f6df
cmp dword [esp + 0x2c], 0x4000
mov ecx, dword [esp + 0x18]
jb 0x59f0b8
cmp dword [esp + 0x30], 0
jne 0x59f7bf
cmp dword [esi + 0x86d0], 0xc8
je 0x59f647
push ebp
call fcn.00582f50
add esp, 4
test eax, eax
jne 0x59f82c
cmp byte [ebp + 0x250], al
je 0x59f647
mov bl, 1
mov byte [esp + 0x11], bl
jmp 0x59f64f
cmp dword [esi + 0xc8], 0x197
lea eax, [esi + 0x554]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
jne 0x59f5f1
cmp byte [esi + 0x863c], 0
jne 0x59f5f1
mov ecx, dword [esp + 0x20]
mov eax, ecx
mov edx, dword [esp + 0x24]
or eax, edx
mov dword [esp + 0x18], 2
je 0x59f558
push edx
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.0057e3a0
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x20]
sub eax, ebp
cdq
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
sbb eax, edx
mov dword [esp + 0x24], eax
test eax, eax
jg 0x59f61d
jl 0x59f541
test ecx, ecx
jne 0x59f61d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0
mov dword [eax], 2
jmp 0x59f455
mov al, byte [esp + 0x12]
test al, al
je 0x59f541
mov eax, dword [esp + 0x1c]
sub eax, ebp
mov byte [esi + 0xfd], 1
push eax
push str._zd_bytes_of_chunk_left_n
push esi
call fcn.0057e3a0
add esp, 0xc
cmp byte [edi + 1], 0xa
jne 0x59f584
inc edi
inc ebp
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x20]
sub eax, ebp
push eax
lea eax, [edi + 1]
push eax
push dword [esp + 0x54]
call fcn.005a0720
add esp, 0x10
cmp eax, 0xffffffff
jne 0x59f5d0
push str.chunk_reading_DONE_n
push esi
call fcn.0057e3a0
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x18], 0
mov dword [eax], 2
mov dword [eax], 2
jmp 0x59f455
push dword [esp + 0x1c]
push str.Read__zd_bytes_of_chunk__continue_n
push esi
call fcn.0057e3a0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [eax], 2
jmp 0x59f455
xor eax, eax
cmp dword [esi + 0x86d0], 0xc8
mov dword [esp + 0x18], eax
jne 0x59f61d
mov eax, dword [esp + 0x1c]
sub eax, ebp
add eax, 0xffffffff
je 0x59f61d
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push esi
call fcn.0057e2d0
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [eax], 2
jmp 0x59f455
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push esi
mov dword [esp + 0x38], 1
call fcn.0057e2d0
add esp, 8
jmp 0x59f459
mov bl, byte [esp + 0x11]
test bl, bl
je 0x59f65c
cmp dword [esi + 0x104], 0
jne 0x59f707
cmp dword [esi + 0x104], 0
mov ecx, dword [esp + 0x14]
je 0x59f728
cmp dword [ecx], 2
jne 0x59f68c
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ecx], 0
call fcn.0057e3a0
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp dword [esi + 0x104], 0
je 0x59f728
mov edi, dword [esp + 0x34]
jmp 0x59ee30
push edi
call dword [0x6e7aa4]
push ebx
call fcn.005827a0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push ebx
call fcn.005827a0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x34
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x34
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0057e2d0
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edi, dword [esp + 0x4c]
push dword [ebp + edi*4 + 0x154]
push ebp
call fcn.0057e9f0
add esp, 8
mov dword [ebp + edi*4 + 0x154], 0xffffffff
jmp 0x59f72c
mov edi, dword [esp + 0x4c]
cmp dword [esi + 0xc8], 0xc8
je 0x59f7cc
test bl, bl
je 0x59f760
cmp dword [esi + 0x104], 0
je 0x59f760
push str.Connect_me_again_please_n
push esi
mov byte [ebp + 0x265], 1
call fcn.0057e3a0
add esp, 8
jmp 0x59f798
push dword [esi + 0x104]
call dword [0x6e7aa4]
mov dword [esi + 0x104], 0
mov byte [ebp + 0x250], 1
push dword [ebp + edi*4 + 0x154]
push ebp
call fcn.0057e9f0
add esp, 0xc
mov dword [ebp + edi*4 + 0x154], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [eax], 0
cmp byte [ebp + 0x265], 0
jne 0x59f80f
push dword [esi + 0xc8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0057e2d0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
mov dword [eax], 2
push dword [ebp + 0x290]
call dword [0x6e7aa4]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebp + 0x290], 0
push esi
mov byte [esi + 0x8638], 1
call fcn.0057e3a0
mov byte [esi + 0xfd], 0
add esp, 0xc
mov byte [ebp + 0x25f], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0057e2d0
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret