Function at 0x478f70
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
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 + 0x6a4]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
call fcn.004799a0
add esp, 4
test al, al
jne 0x479965
mov byte [ebx + 0x50b], al
lea ebx, [edi + 0x140]
lea eax, [esi + 0x4000]
cmp dword [esi + 0x4018], 0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], eax
jne 0x479218
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.0046c440
push dword [ebx]
call dword [0x673068]
add esp, 0x14
mov dword [ebx], 0
call fcn.00472af0
mov dword [ebp - 8], eax
test eax, eax
je 0x479833
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._s:_d
call fcn.0047af20
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x479827
push 1
push eax
push str.CONNECT
push dword [ebp + 8]
call fcn.00473860
push dword [ebp - 0x1c]
mov ebx, eax
call dword [0x673068]
add esp, 0x14
test ebx, ebx
jne 0x4791f4
mov edx, dword [ebp + 8]
mov ecx, 0x5eae64
mov eax, 0x5eae68
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x66e727
cmp dword [edx + 0x358], 1
cmovne eax, ecx
mov cl, byte [edx + 0x4fe]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x304]
je 0x47908f
push 0x3a
push eax
call fcn.005bb820
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x66e727
mov eax, 0x5ea358
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x5ea35c
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.0047af20
add esp, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
je 0x479827
push str.Host
push dword [ebp + 8]
call fcn.004731d0
add esp, 8
test eax, eax
jne 0x4790f7
push dword [ebp - 0x10]
push str.Host:__s_r_n
call fcn.0047af20
mov ebx, eax
add esp, 8
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x4797e6
push str.Proxy_Connection
push dword [ebp + 8]
call fcn.004731d0
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x66e727
push str.User_Agent
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 0x24], ecx
call fcn.004731d0
add esp, 0x10
test eax, eax
jne 0x47913e
cmp dword [edi + 0x9ec], eax
je 0x47913e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x568]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov edx, 0x66e727
push dword [ebp - 0x24]
mov ecx, edx
push dword [ebp - 0x18]
mov eax, dword [eax + 0x564]
test eax, eax
cmovne ecx, eax
mov eax, edx
push ecx
test ebx, ebx
cmovne eax, ebx
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 8]
push dword [ebp - 0x10]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push eax
call fcn.00472d10
mov ebx, eax
add esp, 0x20
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47918c
push eax
call dword [0x673068]
add esp, 4
push dword [ebp - 0x10]
call dword [0x673068]
add esp, 4
test ebx, ebx
jne 0x4791e5
push dword [ebp - 8]
push 1
push dword [ebp + 8]
call fcn.00472d70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4791e5
lea eax, [ebp - 8]
push 0x5e9c14
push eax
call fcn.00472d10
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4791e5
push dword [ebp + 0xc]
push eax
lea eax, [edi + 0x10b0]
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00472b00
add esp, 0x14
mov ebx, eax
mov dword [ebp - 8], 0
test ebx, ebx
jne 0x479807
lea eax, [ebp - 8]
push eax
call fcn.00472ac0
add esp, 4
test ebx, ebx
jne 0x47981e
mov dword [esi + 0x4018], 1
mov dword [esi + 0x4000], ebx
push 1
push 0
push edi
call fcn.0046d820
add esp, 0xc
test edx, edx
jl 0x47997a
jg 0x479237
test eax, eax
je 0x47997a
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ebx
call fcn.0046ce00
add esp, 8
test al, al
je 0x479965
cmp dword [esi + 0x4004], 0
mov dword [ebp - 0x18], 0
je 0x479702
mov edx, dword [ebp - 4]
nop word [eax + eax]
mov eax, dword [esi + 0x400c]
cmp eax, edx
jae 0x47983f
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [ebp - 0x2c]
push ebx
call fcn.0046c500
mov ebx, eax
add esp, 0x14
cmp ebx, 0x51
je 0x479965
push dword [ebp + 8]
call fcn.00477970
add esp, 4
test eax, eax
jne 0x47996e
test ebx, ebx
jne 0x4796f5
cmp dword [ebp - 0x20], ebx
jle 0x479765
cmp dword [esi + 0x4004], 1
jle 0x479352
mov ecx, dword [esi + 0x4010]
mov eax, ecx
mov edx, dword [esi + 0x4014]
or eax, edx
mov dword [esi + 0x400c], esi
je 0x47930e
sub ecx, 1
mov dword [esi + 0x4010], ecx
sbb edx, ebx
mov dword [esi + 0x4014], edx
js 0x4796eb
jg 0x479306
test ecx, ecx
je 0x4796eb
mov ebx, dword [ebp + 8]
jmp 0x4796d9
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 1
push esi
push ebx
call fcn.00492c70
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4796d9
push str.chunk_reading_DONE_n
push edi
call fcn.0046c440
add esp, 8
mov dword [esi + 0x4004], 0
jmp 0x4796cf
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x400c]
mov ecx, dword [edx]
inc ecx
mov dword [edx], ecx
cmp byte [eax], 0xa
je 0x479374
mov ebx, dword [ebp + 8]
inc eax
mov dword [esi + 0x400c], eax
jmp 0x4796dc
cmp byte [edi + 0xb12], 0
je 0x479392
push ecx
push dword [esi + 0x4008]
push 1
push edi
call fcn.0046c2d0
mov edx, dword [ebp - 4]
add esp, 0x10
cmp byte [edi + 0xb25], 0
mov ebx, dword [ebp + 8]
jne 0x4793c6
push dword [edx]
xor eax, eax
cmp byte [edi + 0xb0d], al
push dword [esi + 0x4008]
setne al
add eax, 2
push eax
push ebx
call fcn.0046c2a0
add esp, 0x10
test eax, eax
jne 0x479967
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
cdq
add dword [edi + 0x10a8], eax
adc dword [edi + 0x10ac], edx
mov eax, dword [ecx]
cdq
add dword [edi + 0xa8], eax
adc dword [edi + 0xac], edx
mov ecx, dword [esi + 0x4008]
mov al, byte [ecx]
cmp al, 0xd
je 0x4795fd
cmp al, 0xa
je 0x4795fd
mov eax, dword [ebp - 4]
push 0x11
mov eax, dword [eax]
mov byte [ecx + eax], 0
push dword [esi + 0x4008]
push str.WWW_Authenticate:
call fcn.0046f070
add esp, 0xc
lea ebx, [edi + 0x100]
test eax, eax
je 0x479433
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
cmp eax, 0x191
je 0x479458
push 0x13
push dword [esi + 0x4008]
push str.Proxy_authenticate:
call fcn.0046f070
add esp, 0xc
test eax, eax
je 0x4794a4
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
cmp eax, 0x197
jne 0x4794a4
push dword [esi + 0x4008]
call fcn.00473310
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x479833
cmp dword [ebp - 0x1c], 0x197
push ebx
sete cl
movzx ecx, cl
push ecx
push dword [ebp + 8]
call fcn.00473690
push ebx
mov dword [ebp - 0x28], eax
call dword [0x673068]
mov eax, dword [ebp - 0x28]
add esp, 0x10
test eax, eax
jne 0x479967
jmp 0x4795e0
push 0xf
push dword [esi + 0x4008]
push str.Content_Length:
call fcn.0046f070
add esp, 0xc
test eax, eax
je 0x479500
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x4794de
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.0046c440
add esp, 0xc
jmp 0x4795e0
lea eax, [esi + 0x4010]
push eax
mov eax, dword [esi + 0x4008]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.0047c5c0
add esp, 0x10
jmp 0x4795e0
push str.close
push str.Connection:
push dword [esi + 0x4008]
call fcn.00473250
add esp, 0xc
test al, al
jne 0x4795d9
push 0x12
push dword [esi + 0x4008]
push str.Transfer_Encoding:
call fcn.0046f070
add esp, 0xc
test eax, eax
je 0x479596
mov ecx, dword [ebx]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x47955a
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.0046c440
add esp, 0xc
jmp 0x4795e0
push str.chunked
push str.Transfer_Encoding:
push dword [esi + 0x4008]
call fcn.00473250
add esp, 0xc
test al, al
je 0x4795e0
push str.CONNECT_responded_chunked_n
push edi
call fcn.0046c440
mov ebx, dword [ebp + 8]
push ebx
mov byte [esi + 0x401c], 1
call fcn.00492c40
add esp, 0xc
jmp 0x4795e3
push str.close
push str.Proxy_Connection:
push dword [esi + 0x4008]
call fcn.00473250
add esp, 0xc
test al, al
jne 0x4795d9
push ebx
lea eax, [ebp - 0x30]
push eax
push str.HTTP_1._d__d
push dword [esi + 0x4008]
call fcn.00464af0
add esp, 0x10
cmp eax, 2
jne 0x4795e0
mov eax, dword [ebx]
mov dword [edi + 0x1094], eax
jmp 0x4795e0
mov byte [esi + 0x401d], 1
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
mov dword [edx], 0
jmp 0x4796dc
mov dword [esi + 0x400c], esi
cmp dword [edi + 0x100], 0x197
jne 0x4796b7
cmp byte [edi + 0x1059], 0
jne 0x4796b7
mov edx, dword [esi + 0x4010]
mov eax, edx
mov ecx, dword [esi + 0x4014]
or eax, ecx
mov dword [esi + 0x4004], 2
je 0x47964e
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.0046c440
add esp, 0x10
jmp 0x4796c1
cmp byte [esi + 0x401c], 0
je 0x4796b7
push str.Ignore_chunked_response_body_n
push edi
call fcn.0046c440
mov byte [edi + 0x58b], 1
add esp, 8
mov ecx, dword [esi + 0x4008]
cmp byte [ecx + 1], 0xa
lea eax, [ecx + 1]
jne 0x479683
mov dword [esi + 0x4008], eax
mov ecx, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ecx + 1]
push eax
push ebx
call fcn.00492c70
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4796c1
push str.chunk_reading_DONE_n
push edi
call fcn.0046c440
add esp, 8
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x4796d9
mov dword [esi + 0x4018], 2
mov edx, dword [ebp - 4]
cmp dword [esi + 0x4004], 0
jne 0x479270
jmp 0x479702
mov dword [esi + 0x4018], 2
mov ebx, dword [ebp + 8]
mov dword [esi + 0x4004], 0
push ebx
call fcn.00477970
add esp, 4
test eax, eax
jne 0x47996e
cmp dword [ebp - 0x18], eax
jne 0x47984d
mov eax, dword [edi + 0x1094]
sub eax, 0xc8
cmp eax, 0x64
jb 0x47974c
push ebx
call fcn.004733e0
add esp, 4
test eax, eax
jne 0x479967
cmp byte [ebx + 0x4f4], al
je 0x47974c
mov byte [esi + 0x401d], 1
cmp byte [esi + 0x401d], 0
mov ecx, dword [ebp - 0xc]
je 0x4797b1
cmp dword [ecx], 0
jne 0x479859
mov ebx, ecx
jmp 0x4797d5
cmp dword [edi + 0x5c0], 0
je 0x479794
cmp dword [edi + 0xda8], 0
je 0x479794
mov ebx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push edi
mov byte [ebx + 0x50b], 1
call fcn.0046c440
add esp, 8
jmp 0x4796f8
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x18], 1
call fcn.0046c360
mov ebx, dword [ebp + 8]
add esp, 8
jmp 0x4796f8
cmp dword [ecx], 0
mov ebx, ecx
je 0x479875
cmp dword [esi + 0x4018], 2
jne 0x4797d5
push 1
push dword [ebp + 8]
call fcn.00479bf0
mov ecx, dword [ebp - 0xc]
add esp, 8
cmp dword [ecx], 0
je 0x479875
mov eax, dword [ebp - 4]
jmp 0x478fc1
push dword [ebp - 0x10]
call dword [0x673068]
lea eax, [ebp - 8]
push eax
call fcn.00472ac0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.0046c360
lea eax, [ebp - 8]
push eax
call fcn.00472ac0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
call fcn.00472ac0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push edi
call fcn.0046c360
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push dword [eax]
push ebx
call fcn.0046cd80
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0xffffffff
jmp 0x479878
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x1094]
sub eax, 0xc8
cmp eax, 0x64
jb 0x47991a
cmp byte [esi + 0x401d], 0
je 0x4798b7
cmp dword [ecx], 0
je 0x4798b7
push str.Connect_me_again_please_n
push edi
mov byte [ebx + 0x50b], 1
call fcn.0046c440
push ebx
call fcn.00479bc0
add esp, 0xc
jmp 0x4798e7
push dword [ecx]
call dword [0x673068]
mov eax, dword [ebp - 0xc]
push 2
push ebx
mov dword [eax], 0
call fcn.0046ce90
mov eax, dword [ebp - 0x14]
push dword [eax]
push ebx
call fcn.0046cd80
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov dword [eax], 0xffffffff
mov dword [esi + 0x4018], 0
cmp byte [ebx + 0x50b], 0
jne 0x479965
push dword [edi + 0x100]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.0046c360
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x4018], 2
push dword [ebx + 0x564]
call dword [0x673068]
mov dword [ebx + 0x564], 0
push dword [edi + 0x1094]
mov word [edi + 0xdac], 1
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
call fcn.0046c440
mov byte [edi + 0x58b], 0
add esp, 0x10
mov byte [ebx + 0x505], 0
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 edi
call fcn.0046c360
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret