Function at 0x474200
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx]
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x3c], xmm0
lea eax, [edi + 0x68]
mov byte [ebp - 1], 0
lea eax, [ebx + eax*4]
mov byte [ebp - 2], 0
lea ecx, [edi + 0x139]
mov dword [ebp - 0x34], eax
cmp dword [ebx + ecx*4], 2
lea ecx, [ebx + ecx*4]
mov eax, dword [ebx + edi*4 + 0x1a0]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
je 0x474bfa
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x3c]
mov byte [ebx + 0x26e], 0
mov dword [ebp - 0x20], eax
nop dword [eax + eax]
cmp dword [ecx], 0
jne 0x4744b6
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push edi
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.00456b20
push dword [esi + 0x104]
call dword [0x57a004]
add esp, 0x14
mov dword [esi + 0x104], 0
call fcn.0045af50
mov ebx, eax
test ebx, ebx
je 0x474aa6
push dword [ebp + 0x14]
push edi
push str._s:_hu
call fcn.00461710
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
je 0x474a9d
push 1
push eax
push str.CONNECT
push dword [ebp + 8]
call fcn.0045ba90
push dword [ebp - 0x28]
mov edi, eax
call dword [0x57a004]
add esp, 0x14
test edi, edi
jne 0x474496
mov edx, dword [ebp + 8]
mov ecx, 0x53a214
mov eax, 0x53a218
mov edi, 0x55364c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
cmp dword [edx + 0xf8], 1
cmovne eax, ecx
mov cl, byte [edx + 0x25e]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x98]
je 0x47433b
push 0x3a
push eax
call fcn.004f7f10
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x55364c
mov eax, 0x5532d4
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x5532c4
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.00461710
add esp, 0x14
mov dword [ebp - 0x28], eax
test eax, eax
je 0x474a9d
push str.Host:
push dword [ebp + 8]
call fcn.0045b4c0
add esp, 8
test eax, eax
jne 0x4743a3
push dword [ebp - 0x28]
push str.Host:__s_r_n
call fcn.00461710
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je 0x474a7f
push str.Proxy_Connection:
push dword [ebp + 8]
call fcn.0045b4c0
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x55364c
push str.User_Agent:
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 0x14], ecx
call fcn.0045b4c0
add esp, 0x10
test eax, eax
jne 0x4743ea
cmp dword [esi + 0x408], eax
je 0x4743ea
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2a8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, 0x55364c
push dword [ebp - 0x1c]
mov eax, dword [eax + 0x2a4]
test eax, eax
cmovne ecx, eax
push ecx
push edi
push dword [ebp - 8]
push dword [ebp - 0x28]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.0045b120
mov edi, eax
add esp, 0x20
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x474431
cmp byte [eax], 0
je 0x474431
push eax
call dword [0x57a004]
add esp, 4
push dword [ebp - 0x28]
call dword [0x57a004]
add esp, 4
test edi, edi
jne 0x474482
push ebx
push 1
push dword [ebp + 8]
call fcn.0045b190
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x474482
push 0x539250
push ebx
call fcn.0045b120
mov edi, eax
add esp, 8
test edi, edi
jne 0x474482
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x878c]
push eax
push dword [ebp + 8]
push ebx
call fcn.0045af60
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x474496
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.00456a80
add esp, 8
push ebx
call fcn.0045af20
add esp, 4
test edi, edi
jne 0x474752
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.00457af0
add esp, 0xc
test edx, edx
jl 0x474c03
jg 0x4744d5
test eax, eax
je 0x474c03
cmp byte [ebp + 0x18], 0
jne 0x4744ed
push edi
push ebx
call fcn.00457270
add esp, 8
test al, al
je 0x474bfa
lea edi, [esi + 0x624]
xor eax, eax
mov ecx, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ecx
nop dword [eax]
test ecx, ecx
je 0x474999
push ebx
call fcn.0045f7e0
add esp, 4
test eax, eax
jne 0x474afc
lea eax, [esi + 0x4624]
cmp edi, eax
jae 0x474af2
push 1
push 0
push esi
call fcn.00457af0
mov ebx, edx
add esp, 0xc
mov edi, eax
test ebx, ebx
jl 0x4749fb
jg 0x47455a
test edi, edi
je 0x4749fb
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00456ba0
add esp, 0x14
cmp eax, 0x51
jne 0x4745ad
test ebx, ebx
jg 0x474584
jl 0x47458b
cmp edi, 0x3e8
jb 0x47458b
mov edi, 0x3e8
xor ebx, ebx
push ebx
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.004563a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x474954
mov edi, dword [ebp - 0x14]
jmp 0x474859
test eax, eax
jne 0x474a16
cmp dword [ebp - 0x30], eax
jle 0x47496f
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
inc edx
mov dword [ebp - 0x18], edx
cmp ecx, 1
jle 0x474651
mov edx, dword [ebp - 0x20]
lea edi, [esi + 0x624]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, edx
or eax, ebx
mov dword [ebp - 0x14], edi
je 0x47460d
add edx, 0xffffffff
mov dword [ebp - 0x20], edx
adc ebx, 0xffffffff
mov dword [ebp - 0x24], ebx
js 0x474a16
jg 0x474605
test edx, edx
je 0x474a1e
mov ebx, dword [ebp + 8]
jmp 0x474510
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
push 1
push edi
push ebx
mov dword [ebp - 0x38], 0
call fcn.00475f30
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x474510
push str.chunk_reading_DONE_n
push esi
call fcn.00456b20
mov eax, dword [ebp - 0x10]
add esp, 8
xor ecx, ecx
mov dword [eax], 2
jmp 0x474506
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp byte [edi], 0xa
je 0x474669
inc edi
mov dword [ebp - 0x14], edi
jmp 0x47485c
cmp byte [esi + 0x348], 0
mov ebx, dword [ebp - 0x28]
je 0x474688
push dword [ebp + 8]
push ecx
push ebx
push 1
push esi
call fcn.004569a0
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
xor eax, eax
cmp byte [esi + 0x33d], al
push ecx
setne al
push ebx
add eax, 2
push eax
push dword [ebp + 8]
call fcn.00456970
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add dword [esi + 0x8788], ecx
add dword [esi + 0x80], ecx
test eax, eax
jne 0x474c16
mov al, byte [ebx]
cmp al, 0xd
je 0x474873
cmp al, 0xa
je 0x474873
push 0x11
push ebx
push str.WWW_Authenticate:
mov byte [ecx + ebx], 0
call fcn.00460cb0
add esp, 0xc
test eax, eax
je 0x4746f3
mov edi, dword [esi + 0xc8]
cmp edi, 0x191
je 0x474715
push 0x13
push ebx
push str.Proxy_authenticate:
call fcn.00460cb0
add esp, 0xc
test eax, eax
je 0x47475b
mov edi, dword [esi + 0xc8]
cmp edi, 0x197
jne 0x47475b
push ebx
call fcn.0045b650
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x474aa6
cmp edi, 0x197
push ebx
sete al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.0045b8f0
push ebx
mov edi, eax
call dword [0x57a004]
add esp, 0x10
test edi, edi
je 0x474848
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push ebx
push str.Content_Length:
call fcn.00460cb0
add esp, 0xc
test eax, eax
je 0x47479e
mov eax, dword [esi + 0xc8]
sub eax, 0xc8
cmp eax, 0x64
jb 0x474ab2
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.0050bbc6
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
jmp 0x474848
push str.close
push str.Connection:
push ebx
call fcn.0045b580
add esp, 0xc
test al, al
je 0x4747be
mov byte [ebp - 1], 1
jmp 0x474848
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.0045b580
add esp, 0xc
test al, al
je 0x474805
mov eax, dword [esi + 0xc8]
sub eax, 0xc8
cmp eax, 0x64
jb 0x474ad2
push str.CONNECT_responded_chunked_n
push esi
call fcn.00456b20
push dword [ebp + 8]
mov byte [ebp - 2], 1
call fcn.00475f10
add esp, 0xc
jmp 0x474848
push str.close
push str.Proxy_Connection:
push ebx
call fcn.0045b580
add esp, 0xc
test al, al
je 0x474822
mov byte [ebp - 1], 1
jmp 0x474848
lea edi, [esi + 0xc8]
push edi
lea eax, [ebp - 0x40]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.0044db40
add esp, 0x10
cmp eax, 2
jne 0x474848
mov eax, dword [edi]
mov dword [esi + 0x8778], eax
lea edi, [esi + 0x624]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp + 8]
cmp edx, 0x4000
jae 0x474999
mov ecx, dword [ebp - 8]
jmp 0x474510
xor eax, eax
lea edi, [esi + 0x624]
cmp dword [esi + 0xc8], 0x197
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
jne 0x47493e
cmp byte [esi + 0x86c8], al
jne 0x47493e
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x24]
or eax, ecx
mov dword [ebp - 8], 2
je 0x4748d4
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.00456b20
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [eax], 2
jmp 0x474510
cmp byte [ebp - 2], 0
je 0x47493e
push str.Ignore_chunked_response_body_n
push esi
call fcn.00456b20
lea eax, [ebx + 1]
mov byte [esi + 0xfd], 1
cmp byte [eax], 0xa
lea ecx, [ebp - 0x30]
push ecx
cmovne eax, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
inc eax
push 1
push eax
push ebx
call fcn.00475f30
add esp, 0x18
cmp eax, 0xffffffff
jne 0x47492d
push str.chunk_reading_DONE_n
push esi
call fcn.00456b20
add esp, 8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], 2
jmp 0x474510
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [eax], 2
jmp 0x474510
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov edi, 1
push esi
mov dword [ebp - 0xc], edi
call fcn.00456a80
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x47499c
cmp dword [esi + 0x140], 0
je 0x4749e0
cmp dword [esi + 0x86c0], 0
je 0x4749e0
mov ebx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [ebx + 0x26e], 1
call fcn.00456b20
add esp, 8
mov edi, dword [ebp - 0xc]
push ebx
call fcn.0045f7e0
add esp, 4
test eax, eax
jne 0x474afc
test edi, edi
jne 0x474ac6
cmp dword [esi + 0x8778], 0xc8
je 0x474a29
push ebx
call fcn.0045b720
add esp, 4
test eax, eax
jne 0x474c16
cmp byte [ebx + 0x255], al
je 0x474a29
mov byte [ebp - 1], 1
jmp 0x474a2f
push str.Proxy_CONNECT_aborted
mov edi, 1
push esi
mov dword [ebp - 0xc], edi
call fcn.00456a80
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x47499c
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.00456a80
mov ebx, dword [ebp + 8]
mov edi, 2
add esp, 8
mov dword [ebp - 0xc], edi
jmp 0x47499c
mov ebx, dword [ebp + 8]
jmp 0x474999
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
jmp 0x47499c
cmp byte [ebp - 1], 0
je 0x474a3c
cmp dword [esi + 0x104], 0
jne 0x474b08
cmp dword [esi + 0x104], 0
mov ecx, dword [ebp - 0x10]
je 0x474b1e
cmp dword [ecx], 2
jne 0x474a6a
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ecx], 0
call fcn.00456b20
mov ecx, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi + 0x104], 0
je 0x474b1e
mov edi, dword [ebp + 0xc]
jmp 0x474270
push dword [ebp - 0x28]
call dword [0x57a004]
push ebx
call fcn.0045af20
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0045af20
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc8]
push str.Content_Length:_in__03d_response
push esi
call fcn.00456a80
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc8]
push str.Transfer_Encoding:_in__03d_response
push esi
call fcn.00456a80
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
jmp 0x474c08
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x34]
push dword [edi]
push ebx
call fcn.00457210
add esp, 8
mov dword [edi], 0xffffffff
jmp 0x474b21
mov edi, dword [ebp - 0x34]
cmp dword [esi + 0xc8], 0xc8
je 0x474bb8
cmp byte [ebp - 1], 0
je 0x474b57
cmp dword [esi + 0x104], 0
je 0x474b57
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x26e], 1
call fcn.00456b20
add esp, 8
jmp 0x474b86
push dword [esi + 0x104]
call dword [0x57a004]
push 2
push ebx
mov dword [esi + 0x104], 0
call fcn.00457300
push dword [edi]
push ebx
call fcn.00457210
add esp, 0x14
mov dword [edi], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
cmp byte [ebx + 0x26e], 0
jne 0x474bfa
push dword [esi + 0xc8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.00456a80
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [eax], 2
push dword [ebx + 0x2a4]
call dword [0x57a004]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x2a4], 0
push esi
mov byte [esi + 0x86c4], 1
call fcn.00456b20
mov byte [esi + 0xfd], 0
add esp, 0xc
mov byte [ebx + 0x267], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.00456a80
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret