Function at 0x47ef60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
add eax, 0x108
push esi
push edi
push ebx
mov edi, dword [ebx]
lea eax, [ebx + eax*4]
mov esi, dword [ebx + 0x6cc]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
call fcn.0047f8f0
add esp, 4
test al, al
jne 0x47f8c3
mov byte [ebx + 0x51c], al
cmp dword [esi + 0x20], 0
jne 0x47f1ef
push dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push ebx
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.00471b40
push dword [edi + 0x12c]
call dword [0x6ca044]
push dword [ebp + 0x14]
mov dword [edi + 0x12c], 0
push ebx
push str._s:_d
call fcn.00480fd0
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x47f778
lea eax, [ebp - 0x40]
push 0x20000
push eax
call fcn.00469260
push 1
push ebx
push str.CONNECT
push dword [ebp + 8]
call fcn.00479aa0
push dword [ebp - 0x14]
mov ebx, eax
call dword [0x6ca044]
add esp, 0x1c
test ebx, ebx
jne 0x47f1d1
mov edx, dword [ebp + 8]
mov ecx, 0x63f4fc
mov eax, 0x63f500
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0x6b65ed
cmp dword [edx + 0x358], 1
cmovne eax, ecx
mov cl, byte [edx + 0x524]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x304]
je 0x47f06e
push 0x3a
push eax
call fcn.005d80e0
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x6b65ed
mov eax, 0x63e788
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x63e78c
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.00480fd0
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
je 0x47f76c
push str.Host
push dword [ebp + 8]
call fcn.00479400
add esp, 8
test eax, eax
jne 0x47f0d6
push dword [ebp - 8]
push str.Host:__s_r_n
call fcn.00480fd0
mov ebx, eax
add esp, 8
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x47f74b
push str.Proxy_Connection
push dword [ebp + 8]
call fcn.00479400
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x6b65ed
push str.User_Agent
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 0x1c], ecx
call fcn.00479400
add esp, 0x10
test eax, eax
jne 0x47f11a
cmp dword [edi + 0x9fc], eax
je 0x47f11a
mov eax, dword [edi + 0x10e8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
mov eax, dword [edi + 0x10e4]
mov edx, 0x6b65ed
push dword [ebp - 0x10]
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, edx
push ecx
test ebx, ebx
cmovne eax, ebx
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x40]
push dword [ebp - 8]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.00469200
mov ebx, eax
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47f165
push eax
call dword [0x6ca044]
add esp, 4
push dword [ebp - 8]
call dword [0x6ca044]
add esp, 4
test ebx, ebx
jne 0x47f1c3
lea eax, [ebp - 0x40]
push eax
push 1
push dword [ebp + 8]
call fcn.00478d80
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x47f1c3
lea eax, [ebp - 0x40]
push 0x63dea0
push eax
call fcn.004691d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x47f1c3
push dword [ebp + 0xc]
push eax
lea eax, [edi + 0x1168]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.004791f0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x47f1d1
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.00471a80
add esp, 8
lea eax, [ebp - 0x40]
push eax
call fcn.00469230
add esp, 4
test ebx, ebx
jne 0x47f784
mov ebx, dword [ebp + 8]
mov dword [esi + 0x20], 1
push 1
push 0
push edi
call fcn.004730c0
add esp, 0xc
test edx, edx
jl 0x47f8cc
jg 0x47f20e
test eax, eax
je 0x47f8cc
push dword [ebp + 0xc]
push ebx
call fcn.00472440
add esp, 8
test al, al
je 0x47f8c3
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x10], 0
je 0x47f675
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x24]
push ebx
call fcn.00471c00
mov ebx, eax
add esp, 0x14
cmp ebx, 0x51
je 0x47f8c3
push dword [ebp + 8]
call fcn.0047db60
add esp, 4
test eax, eax
jne 0x47f7a7
test ebx, ebx
jne 0x47f66b
cmp dword [ebp - 0x18], ebx
jle 0x47f6ff
cmp dword [esi + 0x10], 2
jne 0x47f2f9
mov ecx, dword [esi + 0x18]
mov eax, ecx
mov edx, dword [esi + 0x1c]
or eax, edx
je 0x47f2b5
sub ecx, 1
mov dword [esi + 0x18], ecx
sbb edx, ebx
mov dword [esi + 0x1c], edx
test edx, edx
jl 0x47f664
jg 0x47f2a7
test ecx, ecx
jbe 0x47f664
mov ebx, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x47f233
jmp 0x47f675
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 1
lea eax, [ebp - 1]
push eax
push ebx
call fcn.0049ee50
add esp, 0x14
cmp eax, 0xffffffff
jne 0x47f2aa
push str.chunk_reading_DONE_n
push edi
call fcn.00471b40
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 2
jmp 0x47f2aa
push 1
lea eax, [ebp - 1]
push eax
push esi
call fcn.00469220
add esp, 0xc
test eax, eax
jne 0x47f78d
cmp byte [ebp - 1], 0xa
jne 0x47f2a7
push esi
call fcn.00469290
push esi
mov ebx, eax
call fcn.004d59d0
push eax
push ebx
push 1
push edi
mov dword [ebp - 0x14], eax
call fcn.004719f0
add esp, 0x18
cmp byte [edi + 0xb55], 0
jne 0x47f363
push dword [ebp - 0x14]
xor eax, eax
cmp byte [edi + 0xb3d], al
push ebx
setne al
add eax, 2
push eax
push dword [ebp + 8]
call fcn.004719c0
add esp, 0x10
test eax, eax
jne 0x47f8df
mov eax, dword [ebp - 0x14]
cdq
add dword [edi + 0x1160], eax
adc dword [edi + 0x1164], edx
mov al, byte [ebx]
cmp al, 0xd
je 0x47f5a2
cmp al, 0xa
je 0x47f5a2
push 0x11
push ebx
push str.WWW_Authenticate:
call fcn.00475290
add esp, 0xc
test eax, eax
je 0x47f3a9
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x14], eax
cmp eax, 0x191
je 0x47f3cd
push 0x13
push ebx
push str.Proxy_authenticate:
call fcn.00475290
add esp, 0xc
test eax, eax
je 0x47f420
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x14], eax
cmp eax, 0x197
jne 0x47f420
push ebx
call fcn.00479550
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47f778
cmp dword [ebp - 0x14], 0x197
push ebx
sete cl
movzx ecx, cl
push ecx
push dword [ebp + 8]
call fcn.004798d0
push ebx
mov dword [ebp - 0x20], eax
call dword [0x6ca044]
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
jne 0x47f8df
mov ebx, dword [ebp + 8]
push esi
call fcn.004692a0
add esp, 4
jmp 0x47f2aa
push 0xf
push ebx
push str.Content_Length:
call fcn.00475290
add esp, 0xc
test eax, eax
je 0x47f48a
mov ecx, dword [edi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x47f465
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.00471b40
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
call fcn.004692a0
add esp, 4
jmp 0x47f2aa
lea eax, [esi + 0x18]
push eax
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.00482720
mov ebx, dword [ebp + 8]
add esp, 0x10
push esi
call fcn.004692a0
add esp, 4
jmp 0x47f2aa
push str.close
push str.Connection:
push ebx
call fcn.00479480
add esp, 0xc
test al, al
je 0x47f4b6
mov ebx, dword [ebp + 8]
push esi
mov byte [esi + 0x25], 1
call fcn.004692a0
add esp, 4
jmp 0x47f2aa
push 0x12
push ebx
push str.Transfer_Encoding:
call fcn.00475290
add esp, 0xc
test eax, eax
je 0x47f53b
mov ecx, dword [edi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x47f4fb
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.00471b40
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
call fcn.004692a0
add esp, 4
jmp 0x47f2aa
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.00479480
add esp, 0xc
test al, al
je 0x47f591
push str.CONNECT_responded_chunked_n
push edi
call fcn.00471b40
mov ebx, dword [ebp + 8]
push ebx
mov byte [esi + 0x24], 1
call fcn.0049ee10
add esp, 0xc
push esi
call fcn.004692a0
add esp, 4
jmp 0x47f2aa
push str.close
push str.Proxy_Connection:
push ebx
call fcn.00479480
add esp, 0xc
test al, al
je 0x47f567
mov ebx, dword [ebp + 8]
push esi
mov byte [esi + 0x25], 1
call fcn.004692a0
add esp, 4
jmp 0x47f2aa
lea eax, [edi + 0xf0]
push eax
lea eax, [ebp - 0x28]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.004688c0
add esp, 0x10
cmp eax, 2
jne 0x47f591
mov eax, dword [edi + 0xf0]
mov dword [edi + 0x114c], eax
mov ebx, dword [ebp + 8]
push esi
call fcn.004692a0
add esp, 4
jmp 0x47f2aa
cmp dword [edi + 0xf0], 0x197
jne 0x47f642
cmp byte [edi + 0x1111], 0
jne 0x47f642
mov edx, dword [esi + 0x18]
mov eax, edx
mov ecx, dword [esi + 0x1c]
or eax, ecx
mov dword [esi + 0x10], 2
je 0x47f5e4
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.00471b40
add esp, 0x10
jmp 0x47f649
cmp byte [esi + 0x24], 0
je 0x47f642
push str.Ignore_chunked_response_body_n
push edi
call fcn.00471b40
lea eax, [ebx + 1]
mov byte [edi + 0x587], 1
cmp byte [eax], 0xa
cmove ebx, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx + 1]
mov ebx, dword [ebp + 8]
push 1
push eax
push ebx
call fcn.0049ee50
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x47f64c
push str.chunk_reading_DONE_n
push edi
call fcn.00471b40
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 2
jmp 0x47f64c
mov dword [esi + 0x10], 0
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x47f2aa
mov dword [esi + 0x20], 2
jmp 0x47f2aa
mov dword [esi + 0x20], 2
mov ebx, dword [ebp + 8]
mov dword [esi + 0x10], 0
push ebx
call fcn.0047db60
add esp, 4
test eax, eax
jne 0x47f7a7
cmp dword [ebp - 0x10], eax
jne 0x47f869
mov eax, dword [edi + 0x114c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x47f6bc
push ebx
call fcn.00479620
add esp, 4
test eax, eax
jne 0x47f8df
cmp byte [ebx + 0x51d], al
je 0x47f6bc
mov byte [esi + 0x25], 1
cmp byte [esi + 0x25], 0
je 0x47f6cf
cmp dword [edi + 0x12c], 0
jne 0x47f7b3
cmp dword [edi + 0x12c], 0
je 0x47f7ca
cmp dword [esi + 0x20], 2
jne 0x47f6ed
push 1
push ebx
call fcn.0047fb40
add esp, 8
cmp dword [edi + 0x12c], 0
jne 0x47efa5
jmp 0x47f7ca
cmp dword [edi + 0x5b8], 0
je 0x47f72e
cmp dword [edi + 0xe00], 0
je 0x47f72e
mov ebx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push edi
mov byte [ebx + 0x51c], 1
call fcn.00471b40
add esp, 8
jmp 0x47f66e
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x10], 1
call fcn.00471a80
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x47f66e
push dword [ebp - 8]
call dword [0x6ca044]
lea eax, [ebp - 0x40]
push eax
call fcn.00469230
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40]
push eax
call fcn.00469230
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push edi
call fcn.00471a80
add esp, 8
mov eax, 0x38
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
mov eax, dword [ebp - 0xc]
push dword [eax]
push ebx
call fcn.004723c0
mov eax, dword [ebp - 0xc]
add esp, 8
mov dword [eax], 0xffffffff
mov eax, dword [edi + 0x114c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x47f875
cmp byte [esi + 0x25], 0
je 0x47f80a
cmp dword [edi + 0x12c], 0
je 0x47f80a
push str.Connect_me_again_please_n
push edi
mov byte [ebx + 0x51c], 1
call fcn.00471b40
push ebx
call fcn.0047fb10
add esp, 0xc
jmp 0x47f83f
push dword [edi + 0x12c]
call dword [0x6ca044]
push 2
push ebx
mov dword [edi + 0x12c], 0
call fcn.004724f0
mov eax, dword [ebp - 0xc]
push dword [eax]
push ebx
call fcn.004723c0
mov eax, dword [ebp - 0xc]
add esp, 0x14
mov dword [eax], 0xffffffff
mov dword [esi + 0x20], 0
cmp byte [ebx + 0x51c], 0
jne 0x47f8c3
push esi
call fcn.00469230
push dword [edi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.00471a80
add esp, 0x10
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x20], 2
push dword [edi + 0x10e4]
call dword [0x6ca044]
push dword [edi + 0x114c]
mov dword [edi + 0x10e4], 0
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
mov word [edi + 0xe04], 1
call fcn.00471b40
mov byte [edi + 0x587], 0
push esi
mov byte [ebx + 0x52a], 0
call fcn.00469230
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.00471a80
mov eax, 0x1c
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret