Function at 0x48d870
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
mov esi, dword [eax]
mov dword [ebp - 0x3c], 0
movlpd qword [ebp - 0x38], xmm0
lea ecx, [edi + 0x66]
mov byte [ebp - 1], bl
lea ecx, [eax + ecx*4]
mov byte [ebp - 2], bl
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + edi*4 + 0x198]
mov dword [ebp - 0x28], ecx
lea ecx, [edi + 0x141]
cmp dword [eax + ecx*4], 2
lea ecx, [eax + ecx*4]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
je 0x48e25d
mov byte [eax + 0x276], bl
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
nop word [eax + eax]
cmp dword [ecx], 0
jne 0x48db26
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.0046f540
push dword [esi + 0x120]
call dword [0x7b9238]
add esp, 0x14
mov dword [esi + 0x120], 0
call fcn.00473900
mov ebx, eax
test ebx, ebx
je 0x48e142
push dword [ebp + 0x14]
push edi
push str._s:_hu
call fcn.0047a100
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x48e139
push 1
push eax
push str.CONNECT
push dword [ebp + 8]
call fcn.00474450
push dword [ebp - 0x1c]
mov edi, eax
call dword [0x7b9238]
add esp, 0x14
test edi, edi
jne 0x48db09
mov edx, dword [ebp + 8]
mov ecx, 0x798574
mov eax, 0x798578
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], 0x7ad864
cmp dword [edx + 0xf0], 1
cmovne eax, ecx
mov cl, byte [edx + 0x266]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0xa0]
je 0x48d9aa
push 0x3a
push eax
call fcn.004afac0
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x7ad864
mov eax, 0x791d34
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x791d28
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.0047a100
add esp, 0x14
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x48e139
push str.Host:
push dword [ebp + 8]
call fcn.00473e80
add esp, 8
test eax, eax
jne 0x48da12
push dword [ebp - 0x1c]
push str.Host:__s_r_n
call fcn.0047a100
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x48e11b
push str.Proxy_Connection:
push dword [ebp + 8]
call fcn.00473e80
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x7ad864
push str.User_Agent:
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 8], ecx
call fcn.00473e80
add esp, 0x10
test eax, eax
jne 0x48da59
cmp dword [esi + 0x430], eax
je 0x48da59
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2b0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov edx, 0x7ad864
push dword [ebp - 8]
mov ecx, edx
push dword [ebp - 0x18]
mov eax, dword [eax + 0x2ac]
test eax, eax
cmovne ecx, eax
mov eax, edx
push ecx
test edi, edi
cmovne eax, edi
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.00473ac0
mov edi, eax
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x48daa4
push eax
call dword [0x7b9238]
add esp, 4
push dword [ebp - 0x1c]
call dword [0x7b9238]
add esp, 4
test edi, edi
jne 0x48daf5
push ebx
push 1
push dword [ebp + 8]
call fcn.00473b30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x48daf5
push 0x79167c
push ebx
call fcn.00473ac0
mov edi, eax
add esp, 8
test edi, edi
jne 0x48daf5
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x48e8]
push eax
push dword [ebp + 8]
push ebx
call fcn.00473910
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x48db09
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0046f470
add esp, 8
push ebx
call fcn.004738d0
add esp, 4
test edi, edi
jne 0x48de27
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.00470620
add esp, 0xc
test edx, edx
jl 0x48e266
jg 0x48db45
test eax, eax
je 0x48e266
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.0046fd20
add esp, 8
test al, al
je 0x48e25d
mov edi, dword [ebx + 0x514]
xor eax, eax
mov edx, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edx
mov ebx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
test edx, edx
je 0x48dc7c
push ecx
call fcn.00478280
add esp, 4
test eax, eax
jne 0x48e158
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x514]
add eax, 0x4000
cmp edi, eax
jae 0x48e14e
push 1
push 0
push esi
call fcn.00470620
mov edi, eax
add esp, 0xc
mov eax, edx
mov dword [ebp - 0x34], eax
test eax, eax
jl 0x48e0aa
jg 0x48dbcd
test edi, edi
je 0x48e0aa
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.0046f5c0
add esp, 0x14
cmp eax, 0x51
jne 0x48dc26
mov eax, dword [ebp - 0x34]
test eax, eax
jg 0x48dbfa
jl 0x48dc01
cmp edi, 0x3e8
jb 0x48dc01
mov edi, 0x3e8
xor eax, eax
push eax
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x28]
call fcn.0046edf0
add esp, 0x14
cmp eax, 0xffffffff
je 0x48e045
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
jmp 0x48df63
test eax, eax
jne 0x48dc7c
cmp dword [ebp - 0x2c], eax
jle 0x48e060
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
inc eax
mov dword [ebp - 0x18], eax
cmp edx, 1
jle 0x48dd1e
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x24]
mov edi, dword [ecx + 0x514]
mov dword [ebp - 0x14], edi
je 0x48dcd7
mov eax, dword [ebp - 0x20]
add eax, 0xffffffff
mov dword [ebp - 0x20], eax
adc dword [ebp - 0x24], 0xffffffff
js 0x48dc7c
jg 0x48db78
test eax, eax
jne 0x48db78
mov edi, dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00478280
add esp, 4
test eax, eax
jne 0x48e158
test edi, edi
jne 0x48e20c
cmp dword [esi + 0x48d4], 0xc8
je 0x48e0c5
push dword [ebp + 8]
call fcn.004740e0
add esp, 4
test eax, eax
jne 0x48e279
mov eax, dword [ebp + 8]
cmp byte [eax + 0x25d], 0
je 0x48e0c8
mov bl, 1
mov byte [ebp - 1], bl
jmp 0x48e0cf
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 1
push edi
push ecx
call fcn.0048f5f0
mov ecx, dword [ebp + 8]
add esp, 0x10
mov edx, dword [ebp - 8]
cmp eax, 0xffffffff
jne 0x48db78
push str.chunk_reading_DONE_n
push esi
call fcn.0046f540
add esp, 8
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 8], edx
mov dword [eax], 2
jmp 0x48db75
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp byte [edi], 0xa
je 0x48dd39
mov ecx, dword [ebp + 8]
inc edi
mov dword [ebp - 0x14], edi
jmp 0x48df66
cmp byte [esi + 0x370], 0
mov edi, dword [ebp + 8]
je 0x48dd56
push edi
push edx
push ebx
push 1
push esi
call fcn.0046f390
mov edx, dword [ebp - 0x1c]
add esp, 0x14
cmp byte [esi + 0x4d0], 0
jne 0x48dd84
xor eax, eax
cmp byte [esi + 0x365], al
push edx
setne al
push ebx
add eax, 2
push eax
push edi
call fcn.0046f360
add esp, 0x10
test eax, eax
jne 0x48e279
mov edx, dword [ebp - 0x1c]
add dword [esi + 0x48e4], edx
add dword [esi + 0xa0], edx
mov al, byte [ebx]
cmp al, 0xd
je 0x48df79
cmp al, 0xa
je 0x48df79
push 0x11
push ebx
push str.WWW_Authenticate:
mov byte [edx + ebx], 0
call fcn.004796a0
add esp, 0xc
test eax, eax
je 0x48ddc8
mov edi, dword [esi + 0xe8]
cmp edi, 0x191
je 0x48ddea
push 0x13
push ebx
push str.Proxy_authenticate:
call fcn.004796a0
add esp, 0xc
test eax, eax
je 0x48de30
mov edi, dword [esi + 0xe8]
cmp edi, 0x197
jne 0x48de30
push ebx
call fcn.00474010
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x48e142
cmp edi, 0x197
push ebx
sete al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.004742b0
push ebx
mov edi, eax
call dword [0x7b9238]
add esp, 0x10
test edi, edi
je 0x48df50
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.004796a0
add esp, 0xc
test eax, eax
je 0x48de84
mov ecx, dword [esi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x48de69
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.0046f540
add esp, 0xc
jmp 0x48df50
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.004c982b
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
jmp 0x48df50
push str.close
push str.Connection:
push ebx
call fcn.00473f40
add esp, 0xc
test al, al
je 0x48dea4
mov byte [ebp - 1], 1
jmp 0x48df50
push 0x12
push ebx
push str.Transfer_Encoding:
call fcn.004796a0
add esp, 0xc
test eax, eax
je 0x48df0d
mov ecx, dword [esi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x48deda
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push esi
call fcn.0046f540
add esp, 0xc
jmp 0x48df50
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.00473f40
add esp, 0xc
test al, al
je 0x48df50
push str.CONNECT_responded_chunked_n
push esi
call fcn.0046f540
push dword [ebp + 8]
mov byte [ebp - 2], 1
call fcn.0048f5d0
add esp, 0xc
jmp 0x48df50
push str.close
push str.Proxy_Connection:
push ebx
call fcn.00473f40
add esp, 0xc
test al, al
je 0x48df2a
mov byte [ebp - 1], 1
jmp 0x48df50
lea edi, [esi + 0xe8]
push edi
lea eax, [ebp - 0x3c]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.00465bf0
add esp, 0x10
cmp eax, 2
jne 0x48df50
mov eax, dword [edi]
mov dword [esi + 0x48d4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edi, dword [ecx + 0x514]
mov ebx, edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x4000
jae 0x48dc7c
mov edx, dword [ebp - 8]
jmp 0x48db78
mov edi, dword [edi + 0x514]
xor eax, eax
cmp dword [esi + 0xe8], 0x197
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
jne 0x48dd0b
cmp byte [esi + 0x471c], al
jne 0x48dd0b
mov ecx, dword [ebp - 0x20]
mov eax, ecx
mov edx, dword [ebp - 0x24]
or eax, edx
mov dword [ebp - 8], 2
je 0x48dfd7
push edx
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.0046f540
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov edx, dword [ebp - 8]
mov dword [eax], 2
jmp 0x48db75
cmp byte [ebp - 2], 0
je 0x48dd0b
push str.Ignore_chunked_response_body_n
push esi
call fcn.0046f540
lea eax, [ebx + 1]
mov byte [esi + 0x119], 1
cmp byte [eax], 0xa
cmovne eax, ebx
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
call fcn.0048f5f0
add esp, 0x18
cmp eax, 0xffffffff
jne 0x48e034
push str.chunk_reading_DONE_n
push esi
call fcn.0046f540
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 edx, dword [ebp - 8]
mov dword [eax], 2
jmp 0x48db75
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov edi, 1
push esi
mov dword [ebp - 0xc], edi
call fcn.0046f470
add esp, 8
jmp 0x48dc7f
cmp dword [esi + 0x160], 0
je 0x48e08f
cmp dword [esi + 0x4714], 0
je 0x48e08f
mov eax, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [eax + 0x276], 1
call fcn.0046f540
add esp, 8
jmp 0x48dc7c
push str.Proxy_CONNECT_aborted
mov edi, 1
push esi
mov dword [ebp - 0xc], edi
call fcn.0046f470
add esp, 8
jmp 0x48dc7f
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0046f470
mov edi, 2
add esp, 8
mov dword [ebp - 0xc], edi
jmp 0x48dc7f
mov eax, dword [ebp + 8]
mov bl, byte [ebp - 1]
test bl, bl
je 0x48e0dc
cmp dword [esi + 0x120], 0
jne 0x48e164
cmp dword [esi + 0x120], 0
mov ecx, dword [ebp - 0x10]
je 0x48e17a
cmp dword [ecx], 2
jne 0x48e10a
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ecx], 0
call fcn.0046f540
mov ecx, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi + 0x120], 0
je 0x48e17a
mov edi, dword [ebp + 0xc]
jmp 0x48d8e0
push dword [ebp - 0x1c]
call dword [0x7b9238]
push ebx
call fcn.004738d0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004738d0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
jmp 0x48e26b
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x30]
push dword [edi]
push eax
call fcn.0046fcc0
add esp, 8
mov dword [edi], 0xffffffff
jmp 0x48e17d
mov edi, dword [ebp - 0x30]
cmp dword [esi + 0xe8], 0xc8
je 0x48e218
test bl, bl
je 0x48e1b4
cmp dword [esi + 0x120], 0
je 0x48e1b4
mov ebx, dword [ebp + 8]
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x276], 1
call fcn.0046f540
add esp, 8
jmp 0x48e1e6
push dword [esi + 0x120]
call dword [0x7b9238]
mov ebx, dword [ebp + 8]
push 2
push ebx
mov dword [esi + 0x120], 0
call fcn.0046fdb0
push dword [edi]
push ebx
call fcn.0046fcc0
add esp, 0x14
mov dword [edi], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
cmp byte [ebx + 0x276], 0
jne 0x48e25d
push dword [esi + 0xe8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0046f470
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov dword [eax], 2
push dword [ebx + 0x2ac]
call dword [0x7b9238]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x2ac], 0
push esi
mov byte [esi + 0x4718], 1
call fcn.0046f540
mov byte [esi + 0x119], 0
add esp, 0xc
mov byte [ebx + 0x26f], 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.0046f470
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret