Function at 0x48bad0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 8]
mov edx, 0x36ee80
push ebx
push edi
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
mov edi, dword [ecx]
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x28], 0
mov eax, dword [edi + 0x1c8]
test eax, eax
cmovne edx, eax
xor bl, bl
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0xc]
mov byte [ebp - 1], bl
lea eax, [ecx + edx*4]
add edx, 0x120
mov eax, dword [eax + 0x154]
mov dword [ebp - 0x2c], eax
xor al, al
cmp dword [ecx + edx*4], 2
lea edx, [ecx + edx*4]
mov byte [ebp - 2], al
mov dword [ebp - 8], edx
jne 0x48bb39
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ecx + 0x1d6], al
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
push esi
lea esp, [esp]
cmp dword [edx], 0
je 0x48c20b
lea eax, [edi + 0x53c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov esi, eax
mov eax, 1
xor ebx, ebx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x48c07a
cmp dword [ebp - 0x28], 0
jne 0x48c19f
push dword [ecx + 0x148]
push dword [ecx + 0x144]
call fcn.00465250
push edx
push eax
call fcn.004651c0
mov ecx, dword [ebp - 0x30]
add esp, 0x10
sub ecx, eax
test ecx, ecx
jle 0x48c10b
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.0046cd20
add esp, 0x10
cmp eax, 0xffffffff
je 0x48c03e
test eax, eax
je 0x48c053
lea eax, [ebp - 0x10]
push eax
mov eax, 0x4000
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.0046d450
add esp, 0x14
cmp eax, 0x51
je 0x48c067
test eax, eax
je 0x48bc0f
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x48c053
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jg 0x48bc44
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [edi + 0x140], eax
je 0x48bc3a
cmp dword [edi + 0x85d4], eax
je 0x48bc3a
mov eax, dword [ebp + 8]
mov byte [eax + 0x1d6], 1
jmp 0x48c056
push str.Proxy_CONNECT_aborted
jmp 0x48c043
add dword [ebp - 0x24], ecx
cmp dword [ebp - 0xc], 1
jle 0x48bcec
mov eax, dword [ebp - 0x18]
lea edx, [edi + 0x53c]
or eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edx
je 0x48bc98
mov eax, ecx
mov ecx, dword [ebp - 0x18]
cdq
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
sbb eax, edx
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x48c053
jl 0x48bc8e
test ecx, ecx
jne 0x48c053
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x48c053
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
push edx
push dword [ebp + 8]
call fcn.0048d2e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x48bcd6
push str.chunk_reading_DONE_n
push edi
call fcn.0046d3d0
add esp, 8
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [eax], 2
jmp 0x48c053
push dword [ebp - 0x14]
push str.Read__zd_bytes_of_chunk__continue_n
push edi
call fcn.0046d3d0
add esp, 0xc
jmp 0x48c053
xor eax, eax
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x48c053
mov edx, dword [ebp - 0x20]
lea esp, [esp]
inc ebx
cmp byte [edx], 0xa
jne 0x48bed9
cmp byte [edi + 0x2d0], 0
je 0x48bd23
push dword [ebp + 8]
push ebx
push esi
push 1
push edi
call fcn.0046d250
add esp, 0x14
cmp byte [edi + 0x2c4], 0
mov ecx, 3
push ebx
mov eax, 2
cmovne eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.0046d0c0
add dword [edi + 0x8678], ebx
add esp, 0x10
add dword [edi + 0x80], ebx
test eax, eax
jne 0x48c465
mov al, byte [esi]
cmp al, 0xd
je 0x48beee
cmp al, 0xa
je 0x48beee
mov cl, byte [ebx + esi]
lea eax, [ebx + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov dword [ebp - 0x3c], eax
mov byte [ebp - 3], cl
mov byte [eax], 0
call fcn.00478700
add esp, 0xc
test eax, eax
je 0x48bd9b
mov eax, dword [edi + 0xc8]
cmp eax, 0x191
je 0x48bdbc
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.00478700
add esp, 0xc
test eax, eax
je 0x48be01
mov eax, dword [edi + 0xc8]
cmp eax, 0x197
jne 0x48be01
cmp eax, 0x197
push esi
sete byte [ebp - 0x34]
call fcn.00471ab0
mov esi, eax
add esp, 4
test esi, esi
je 0x48c340
push esi
push dword [ebp - 0x34]
push dword [ebp + 8]
call fcn.00471d50
push esi
mov ebx, eax
call dword [0x4d84ac]
add esp, 0x10
test ebx, ebx
je 0x48bec3
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push esi
push 0x4c285c
call fcn.00478700
add esp, 0xc
test eax, eax
je 0x48be30
push 0xa
push 0
add esi, 0xf
push esi
call fcn.0049b0d1
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jmp 0x48bec3
push 0x4c2ba0
push str.Connection:
push esi
call fcn.004719e0
add esp, 0xc
test al, al
je 0x48be4d
mov byte [ebp - 1], 1
jmp 0x48bec3
push 0x4c25d0
push str.Transfer_Encoding:
push esi
call fcn.004719e0
add esp, 0xc
test al, al
je 0x48be80
push str.CONNECT_responded_chunked_n
push edi
call fcn.0046d3d0
push dword [ebp + 8]
mov byte [ebp - 2], 1
call fcn.0048d2c0
add esp, 0xc
jmp 0x48bec3
push 0x4c2ba0
push str.Proxy_Connection:
push esi
call fcn.004719e0
add esp, 0xc
test al, al
je 0x48be9d
mov byte [ebp - 1], 1
jmp 0x48bec3
lea ebx, [edi + 0xc8]
push ebx
lea eax, [ebp - 0x38]
push eax
push str.HTTP_1._d__d
push esi
call fcn.0049a990
add esp, 0x10
cmp eax, 2
jne 0x48bec3
mov eax, dword [ebx]
mov dword [edi + 0x8668], eax
mov eax, dword [ebp - 0x3c]
xor ebx, ebx
mov edx, dword [ebp - 0x20]
mov cl, byte [ebp - 3]
mov byte [eax], cl
mov ecx, dword [ebp - 0x10]
lea esi, [edx + 1]
mov eax, dword [ebp - 0x14]
inc eax
inc edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], eax
cmp eax, ecx
jl 0x48bd00
jmp 0x48c053
cmp dword [edi + 0xc8], 0x197
lea eax, [edi + 0x53c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
jne 0x48c00a
cmp byte [edi + 0x85dc], 0
jne 0x48c00a
mov ecx, dword [ebp - 0x18]
mov eax, ecx
mov edx, dword [ebp - 0x1c]
or eax, edx
mov dword [ebp - 0xc], 2
je 0x48bf7c
push edx
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.0046d3d0
mov eax, dword [ebp - 0x10]
add esp, 0x10
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cdq
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
sbb eax, edx
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x48c033
jl 0x48bf67
test ecx, ecx
jne 0x48c033
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], 0
mov dword [eax], 2
jmp 0x48c053
mov al, byte [ebp - 2]
test al, al
je 0x48bf67
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
push eax
push str._zd_bytes_of_chunk_left_n
push edi
mov byte [edi + 0xfd], 1
call fcn.0046d3d0
add esp, 0xc
cmp byte [esi + 1], 0xa
jne 0x48bfa9
inc esi
inc dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
push eax
lea eax, [esi + 1]
push eax
push dword [ebp + 8]
call fcn.0048d2e0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x48bfee
push str.chunk_reading_DONE_n
push edi
call fcn.0046d3d0
mov eax, dword [ebp - 8]
add esp, 8
mov dword [ebp - 0xc], 0
mov dword [eax], 2
mov dword [eax], 2
jmp 0x48c053
push dword [ebp - 0x10]
push str.Read__zd_bytes_of_chunk__continue_n
push edi
call fcn.0046d3d0
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [eax], 2
jmp 0x48c053
xor eax, eax
cmp dword [edi + 0x8668], 0xc8
mov dword [ebp - 0xc], eax
jne 0x48c033
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
dec eax
je 0x48c033
push eax
push str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
push edi
call fcn.0046d330
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [eax], 2
jmp 0x48c053
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
push edi
mov dword [ebp - 0x28], 1
call fcn.0046d330
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.004753f0
add esp, 4
test eax, eax
jne 0x48c0ff
cmp dword [ebp - 0x24], 0x4000
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
jb 0x48bb75
cmp dword [ebp - 0x28], 0
jne 0x48c19f
cmp dword [edi + 0x8668], 0xc8
je 0x48c0b3
push ecx
call fcn.00471b80
add esp, 4
test eax, eax
jne 0x48c465
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x1c0], al
je 0x48c0b3
mov bl, 1
mov byte [ebp - 1], bl
jmp 0x48c0ba
mov bl, byte [ebp - 1]
test bl, bl
je 0x48c0c3
cmp dword [edi + 0x104], 0
jne 0x48c125
cmp dword [edi + 0x104], 0
mov edx, dword [ebp - 8]
je 0x48c145
cmp dword [edx], 2
jne 0x48c0f0
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push edi
mov dword [edx], 0
call fcn.0046d3d0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edx, dword [ebp - 8]
cmp dword [edi + 0x104], 0
jne 0x48bb50
jmp 0x48c145
pop esi
pop edi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.0046d330
add esp, 8
mov eax, 0x38
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push dword [ecx + eax*4 + 0x154]
lea esi, [ecx + eax*4]
push ecx
call fcn.0046d910
add esp, 8
mov dword [esi + 0x154], 0xffffffff
mov eax, dword [edi + 0xc8]
cmp eax, 0xc8
je 0x48c1ab
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.0046d330
add esp, 0xc
test bl, bl
je 0x48c178
cmp dword [edi + 0x104], 0
je 0x48c178
mov eax, dword [ebp + 8]
mov byte [eax + 0x1d6], 1
mov eax, dword [edi + 0x104]
test eax, eax
je 0x48c196
push eax
call dword [0x4d84ac]
add esp, 4
mov dword [edi + 0x104], 0
mov eax, dword [ebp - 8]
mov dword [eax], 0
pop esi
pop edi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [eax], 2
mov eax, dword [ebx + 0x200]
test eax, eax
je 0x48c1d5
push eax
call dword [0x4d84ac]
add esp, 4
mov dword [ebx + 0x200], 0
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x200], 0
push edi
mov byte [edi + 0x85d8], 1
call fcn.0046d3d0
add esp, 8
mov byte [edi + 0xfd], 0
mov byte [ebx + 0x1cf], 0
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push edi
call fcn.0046d3d0
mov eax, dword [edi + 0x104]
add esp, 0x10
test eax, eax
je 0x48c23e
push eax
call dword [0x4d84ac]
add esp, 4
mov dword [edi + 0x104], 0
call fcn.00471400
mov ebx, eax
test ebx, ebx
je 0x48c340
push esi
push dword [ebp + 0x10]
push str._s:_hu
call fcn.004770f0
add esp, 0xc
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x48c2ea
push 1
push eax
push 0x4c7e48
push dword [ebp + 8]
call fcn.00471e80
push dword [ebp - 0x3c]
mov esi, eax
call dword [0x4d84ac]
add esp, 0x14
test esi, esi
jne 0x48c459
mov ecx, dword [ebp + 8]
mov edx, 0x4c2774
push dword [ebp + 0x14]
mov eax, 0x4c2778
mov esi, 0x4b6fd2
mov dword [ebp - 0x24], esi
cmp dword [ecx + 0x138], 1
mov cl, byte [ecx + 0x1c6]
cmovne eax, edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], eax
test cl, cl
mov edx, esi
mov eax, 0x4c1c94
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x4c1c98
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.004770f0
add esp, 0x14
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x48c300
push ebx
call dword [0x4d84ac]
add esp, 4
mov eax, 0x1b
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4c248c
push dword [ebp + 8]
call fcn.00471920
add esp, 8
test eax, eax
jne 0x48c34c
push dword [ebp - 0x28]
push 0x4c7e5c
call fcn.004770f0
mov esi, eax
add esp, 8
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x48c34c
push dword [ebp - 0x28]
call dword [0x4d84ac]
push ebx
call dword [0x4d84ac]
add esp, 8
pop esi
pop edi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_Connection:
push dword [ebp + 8]
call fcn.00471920
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x4b6fd2
push str.User_Agent:
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 0x3c], ecx
call fcn.00471920
add esp, 0x10
test eax, eax
jne 0x48c393
cmp dword [edi + 0x364], eax
je 0x48c393
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x204]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov ecx, 0x4b6fd2
push dword [ebp - 0x2c]
mov eax, dword [eax + 0x200]
test eax, eax
cmovne ecx, eax
push ecx
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.004715c0
mov esi, eax
add esp, 0x20
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x48c3da
cmp byte [eax], 0
je 0x48c3da
push eax
call dword [0x4d84ac]
add esp, 4
push dword [ebp - 0x28]
call dword [0x4d84ac]
add esp, 4
test esi, esi
jne 0x48c442
push ebx
push 1
push dword [ebp + 8]
call fcn.00471630
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x48c442
push 0x4c2808
push ebx
call fcn.004715c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48c442
mov eax, dword [ebp + 0xc]
push eax
push esi
lea eax, [edi + 0x867c]
push eax
push dword [ebp + 8]
push ebx
call fcn.00471410
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x48c442
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
mov dword [eax], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.0046d330
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x4d84ac]
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret