Function at 0x48c890
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x28], 0
push edi
mov ebx, dword [esi + 0xc]
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x148]
mov edi, dword [ebx + 0x4e0]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x134]
mov dword [esp + 0x1c], eax
call fcn.0048c610
test al, al
jne 0x48d2ba
mov byte [ebx + 0x25c], al
lea esp, [esp]
cmp dword [edi + 0x1f0], 0
jne 0x48cad6
push dword [ebp + 0xc]
mov dword [esp + 0x18], 0
push dword [ebp + 8]
mov dword [esp + 0x20], 0
push str.Establish_HTTP_proxy_tunnel_to__s:_d
push esi
call fcn.00479f40
push dword [esi + 0x128]
call dword [0x5449e8]
add esp, 0x14
mov dword [esi + 0x128], 0
mov edx, 0x100000
lea ecx, [edi + 0x1cc]
call fcn.004766e0
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
mov edx, ebx
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0048c7e0
add esp, 0x10
test eax, eax
jne 0x48d2bc
push 1
push dword [esp + 0x18]
mov edx, ebx
mov ecx, esi
push eax
push str.CONNECT
call fcn.00494420
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x48caa6
mov eax, dword [esp + 0x10]
mov edx, 0x530218
mov ecx, 0x52e99d
cmp dword [eax + 0xb8], 1
mov eax, 0x53021c
cmovne edx, eax
mov eax, dword [esi + 0xcbc]
test eax, eax
cmovne ecx, eax
mov eax, 0x52e99d
push ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
cmovne eax, ecx
push eax
push edx
push dword [esp + 0x20]
lea eax, [edi + 0x1cc]
push str.CONNECT__s_HTTP__s_r_n_s_s
push eax
call fcn.00476880
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x48ca98
mov edx, dword [esp + 0x10]
mov ecx, esi
push str.User_Agent
call fcn.00493ad0
add esp, 4
test eax, eax
jne 0x48ca1c
mov eax, dword [esi + 0x5c0]
test eax, eax
je 0x48ca1c
push eax
lea eax, [edi + 0x1cc]
push str.User_Agent:__s_r_n
push eax
call fcn.00476880
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x48ca98
mov edx, dword [esp + 0x10]
mov ecx, esi
push str.Proxy_Connection
call fcn.00493ad0
add esp, 4
test eax, eax
jne 0x48ca49
mov edx, str.Proxy_Connection:_Keep_Alive_r_n
lea ecx, [edi + 0x1cc]
call fcn.00476830
mov ebx, eax
test ebx, ebx
jne 0x48ca98
lea eax, [edi + 0x1cc]
mov dl, 1
push eax
mov ecx, esi
call fcn.00495130
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x48ca98
mov edx, 0x529e8c
lea ecx, [edi + 0x1cc]
call fcn.00476830
mov ebx, eax
test ebx, ebx
jne 0x48ca98
push ecx
push eax
push eax
lea eax, [esi + 0xd30]
mov edx, esi
push eax
lea ecx, [edi + 0x1cc]
call fcn.004949c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x48caa6
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.00479fc0
add esp, 8
push dword [esp + 0x18]
call dword [0x5449e8]
add esp, 4
push dword [esp + 0x14]
call dword [0x5449e8]
add esp, 4
test ebx, ebx
jne 0x48d17e
mov ebx, dword [esp + 0x10]
mov dword [edi + 0x1f0], 1
push 1
xor edx, edx
mov ecx, esi
call fcn.0047a920
add esp, 4
test edx, edx
jl 0x48d2cf
jg 0x48caf6
test eax, eax
je 0x48d2cf
mov ecx, ebx
call fcn.0047c440
mov ecx, dword [esp + 0x1c]
test al, al
jne 0x48cb12
cmp dword [ecx + 0x1a0], 0
je 0x48d2ba
cmp dword [ecx + 0x1a0], 1
jne 0x48cb6e
mov eax, dword [edi + 0x1dc]
test eax, eax
jne 0x48d187
mov eax, dword [esi + 0x900]
mov ecx, esi
mov dword [esi + 0x130], eax
lea eax, [esp + 0x24]
mov edx, dword [esi + 0x4ec]
push eax
call fcn.0048d500
add esp, 4
test eax, eax
jne 0x48d2bc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x1dc], eax
test eax, eax
jne 0x48d187
mov dword [ecx + 0x1a0], eax
cmp dword [edi + 0x1e0], 0
mov dword [esp + 0x14], 0
je 0x48cc21
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x13]
mov ecx, esi
push 1
push eax
call fcn.0047a5b0
mov ebx, eax
add esp, 0xc
cmp ebx, 0x51
je 0x48d2ba
mov ecx, esi
call fcn.00493910
test eax, eax
jne 0x48d2c3
test ebx, ebx
jne 0x48cc13
cmp dword [esp + 0x20], ebx
jle 0x48d0db
cmp dword [edi + 0x1e0], 2
jne 0x48cd35
mov ecx, dword [edi + 0x1e8]
mov eax, ecx
mov edx, dword [edi + 0x1ec]
or eax, edx
je 0x48cced
sub ecx, 1
mov dword [edi + 0x1e8], ecx
sbb edx, ebx
mov dword [edi + 0x1ec], edx
js 0x48cc09
jg 0x48d0c9
test ecx, ecx
jne 0x48d0c9
mov dword [edi + 0x1f0], 2
mov dword [edi + 0x1e0], 0
mov ebx, dword [esp + 0x10]
mov ecx, esi
call fcn.00493910
test eax, eax
jne 0x48d2c3
cmp dword [esp + 0x14], eax
jne 0x48d1ee
mov eax, dword [esi + 0xd14]
sub eax, 0xc8
cmp eax, 0x64
jb 0x48cc68
mov ecx, esi
call fcn.00494060
test eax, eax
jne 0x48d2bc
cmp byte [ebx + 0x25d], al
je 0x48cc68
mov byte [edi + 0x1f5], 1
cmp byte [edi + 0x1f5], 0
je 0x48d147
cmp dword [esi + 0x128], 0
je 0x48d16b
push dword [ebx + 0x148]
mov edx, ebx
mov ecx, esi
call fcn.0047c260
add esp, 4
mov dword [ebx + 0x148], 0xffffffff
mov eax, dword [esi + 0xd14]
sub eax, 0xc8
cmp eax, 0x64
jb 0x48d261
cmp byte [edi + 0x1f5], 0
je 0x48d1fa
cmp dword [esi + 0x128], 0
je 0x48d1fa
push str.Connect_me_again_please
push esi
mov byte [ebx + 0x25c], 1
call fcn.00479f40
add esp, 8
mov ecx, esi
call fcn.0048c760
jmp 0x48d21f
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push 1
lea edx, [esp + 0x1b]
call fcn.004a2790
add esp, 0xc
cmp eax, 0xffffffff
jne 0x48d0c9
push str.chunk_reading_DONE
push esi
call fcn.00479f40
add esp, 8
mov dword [edi + 0x1e0], 0
jmp 0x48d0bf
push 1
lea edx, [esp + 0x13]
lea ecx, [edi + 0x1bc]
call fcn.00476820
add esp, 4
test eax, eax
jne 0x48d1e0
cmp byte [esp + 0xf], 0xa
jne 0x48d0c9
lea ecx, [edi + 0x1bc]
call fcn.004768a0
lea ecx, [edi + 0x1bc]
mov ebx, eax
call fcn.004768c0
push eax
push ebx
mov edx, 1
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.0047a620
add esp, 8
cmp byte [esi + 0x725], 0
jne 0x48cdb7
push dword [esp + 0x18]
xor edx, edx
mov ecx, esi
cmp byte [esi + 0x70c], dl
push ebx
setne dl
add edx, 2
call fcn.0047a540
add esp, 8
test eax, eax
jne 0x48d2bc
mov eax, dword [esp + 0x18]
cdq
add dword [esi + 0xd28], eax
adc dword [esi + 0xd2c], edx
mov al, byte [ebx]
cmp al, 0xd
je 0x48cff5
cmp al, 0xa
je 0x48cff5
push 0x11
mov edx, ebx
mov ecx, str.WWW_Authenticate:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x48ce00
mov eax, dword [esi + 0xf0]
mov dword [esp + 0x18], eax
cmp eax, 0x191
je 0x48ce26
push 0x13
mov edx, ebx
mov ecx, str.Proxy_authenticate:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x48ce77
mov eax, dword [esi + 0xf0]
mov dword [esp + 0x18], eax
cmp eax, 0x197
jne 0x48ce77
mov ecx, ebx
call fcn.00493b50
mov ebx, eax
test ebx, ebx
je 0x48d1d4
cmp dword [esp + 0x18], 0x197
mov ecx, esi
push ebx
sete dl
call fcn.00494590
add esp, 4
mov dword [esp + 0x18], eax
push ebx
call dword [0x5449e8]
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x48d2bc
lea ecx, [edi + 0x1bc]
call fcn.00476800
jmp 0x48d0c9
push 0xf
mov edx, ebx
mov ecx, str.Content_Length:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x48cee2
mov ecx, dword [esi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x48cebc
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push esi
call fcn.00479f40
add esp, 0xc
lea ecx, [edi + 0x1bc]
call fcn.00476800
jmp 0x48d0c9
lea eax, [edi + 0x1e8]
xor edx, edx
push eax
push 0xa
lea ecx, [ebx + 0xf]
call fcn.00499950
add esp, 8
lea ecx, [edi + 0x1bc]
call fcn.00476800
jmp 0x48d0c9
push str.close
mov edx, str.Connection:
mov ecx, ebx
call fcn.00494c60
add esp, 4
test al, al
jne 0x48cfde
push 0x12
mov edx, ebx
mov ecx, str.Transfer_Encoding:
call fcn.0048aa40
add esp, 4
test eax, eax
je 0x48cf8b
mov ecx, dword [esi + 0xf0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x48cf43
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push esi
call fcn.00479f40
add esp, 0xc
lea ecx, [edi + 0x1bc]
call fcn.00476800
jmp 0x48d0c9
push str.chunked
mov edx, str.Transfer_Encoding:
mov ecx, ebx
call fcn.00494c60
add esp, 4
test al, al
je 0x48cfe5
push str.CONNECT_responded_chunked
push esi
call fcn.00479f40
add esp, 8
mov byte [edi + 0x1f4], 1
mov ecx, esi
call fcn.004a2770
lea ecx, [edi + 0x1bc]
call fcn.00476800
jmp 0x48d0c9
push str.close
mov edx, str.Proxy_Connection:
mov ecx, ebx
call fcn.00494c60
add esp, 4
test al, al
jne 0x48cfde
lea eax, [esi + 0xf0]
push eax
lea eax, [esp + 0x30]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.0047c530
add esp, 0x10
cmp eax, 2
jne 0x48cfe5
mov eax, dword [esi + 0xf0]
lea ecx, [edi + 0x1bc]
mov dword [esi + 0xd14], eax
call fcn.00476800
jmp 0x48d0c9
mov byte [edi + 0x1f5], 1
lea ecx, [edi + 0x1bc]
call fcn.00476800
jmp 0x48d0c9
cmp dword [esi + 0xf0], 0x197
jne 0x48d0a7
cmp byte [esi + 0xcf9], 0
jne 0x48d0a7
mov edx, dword [edi + 0x1e8]
mov eax, edx
mov ecx, dword [edi + 0x1ec]
or eax, ecx
mov dword [edi + 0x1e0], 2
je 0x48d04d
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body
push esi
call fcn.00479f40
add esp, 0x10
cmp dword [edi + 0x1e0], 0
jne 0x48cb83
jmp 0x48d0b1
cmp byte [edi + 0x1f4], 0
je 0x48d0a7
push str.Ignore_chunked_response_body
push esi
call fcn.00479f40
lea eax, [ebx + 1]
mov byte [esi + 0x13f], 1
cmp byte [eax], 0xa
mov ecx, esi
cmove ebx, eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x2c]
push eax
push 1
lea edx, [ebx + 1]
call fcn.004a2790
add esp, 0x14
cmp eax, 0xffffffff
jne 0x48d03e
push str.chunk_reading_DONE
push esi
call fcn.00479f40
add esp, 8
mov dword [edi + 0x1f0], 2
mov dword [edi + 0x1e0], 0
mov eax, dword [edi + 0x1e8]
or eax, dword [edi + 0x1ec]
jne 0x48d0c9
mov dword [edi + 0x1f0], 2
cmp dword [edi + 0x1e0], 0
jne 0x48cb83
jmp 0x48cc1d
cmp dword [esi + 0x170], 0
je 0x48d11e
cmp dword [esi + 0x9b0], 0
je 0x48d11e
cmp dword [esi + 0xcbc], 0
je 0x48d11e
mov ebx, dword [esp + 0x10]
push str.Proxy_CONNECT_connection_closed
push esi
mov byte [ebx + 0x25c], 1
call fcn.00479f40
add esp, 8
mov dword [edi + 0x1e0], 0
jmp 0x48cc21
push str.Proxy_CONNECT_aborted
push esi
mov dword [esp + 0x1c], 1
call fcn.00479fc0
mov ebx, dword [esp + 0x18]
add esp, 8
mov dword [edi + 0x1e0], 0
jmp 0x48cc21
mov eax, dword [esi + 0x128]
test eax, eax
je 0x48cc9e
cmp dword [edi + 0x1f0], 2
jne 0x48c8e0
mov dl, 1
mov ecx, esi
call fcn.0048c670
mov eax, dword [esi + 0x128]
test eax, eax
jne 0x48c8e0
jmp 0x48cc9e
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x2bc]
lea ecx, [esp + 0x28]
push ecx
push eax
push dword [esi + 0x130]
mov ecx, esi
call fcn.0047a080
mov ebx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x48d1c1
push ebx
push dword [esi + 0x130]
mov edx, 2
mov ecx, esi
call fcn.0047a620
add esp, 8
sub dword [edi + 0x1dc], ebx
add dword [esi + 0x130], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push esi
call fcn.00479fc0
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x128]
call dword [0x5449e8]
add esp, 4
mov dword [esi + 0x128], 0
mov edx, 2
mov ecx, ebx
call fcn.0047c3f0
mov dword [edi + 0x1f0], 0
cmp byte [ebx + 0x25c], 0
jne 0x48d2ba
lea ecx, [edi + 0x1bc]
call fcn.00476700
push dword [esi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.00479fc0
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x1f0], 2
push dword [esi + 0xcbc]
call dword [0x5449e8]
add esp, 4
mov dword [esi + 0xcbc], 0
mov word [esi + 0x9b4], 1
push dword [esi + 0xd14]
push str.Proxy_replied__d_to_CONNECT_request
push esi
call fcn.00479f40
add esp, 0xc
mov byte [esi + 0x13f], 0
lea ecx, [edi + 0x1bc]
mov byte [ebx + 0x26a], 0
call fcn.00476700
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.00479fc0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret