Function at 0x4d2a80
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
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 - 0x40], 0
movlpd qword [ebp - 0x3c], xmm0
lea ecx, [edi + 0x68]
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 + 0x1a0]
mov dword [ebp - 0x28], ecx
lea ecx, [edi + 0x145]
cmp dword [eax + ecx*4], 2
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], ecx
je 0x4d3481
mov byte [eax + 0x29e], bl
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
nop word [eax + eax]
cmp dword [ecx], 0
jne 0x4d2d33
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.004b09b0
push dword [esi + 0x104]
call dword [0x65f004]
add esp, 0x14
mov dword [esi + 0x104], 0
call fcn.004b4f50
mov ebx, eax
test ebx, ebx
je 0x4d3326
push dword [ebp + 0x14]
push edi
push str._s:_hu
call fcn.004bb760
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4d331d
push 1
push eax
push str.CONNECT
push dword [ebp + 8]
call fcn.004b5aa0
push dword [ebp - 0x1c]
mov edi, eax
call dword [0x65f004]
add esp, 0x14
test edi, edi
jne 0x4d2d16
mov edx, dword [ebp + 8]
mov ecx, 0x5df5a0
mov eax, 0x63d090
mov edi, 0x63cb94
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
cmp dword [edx + 0xf8], 1
cmovne eax, ecx
mov cl, byte [edx + 0x28e]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x98]
je 0x4d2bbb
push 0x3a
push eax
call fcn.005a4a40
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x63cb94
mov eax, 0x644948
cmove eax, edx
push eax
push dword [ebp + 0x10]
mov eax, 0x644930
cmove eax, edx
push eax
push str._s_s_s:_hu
call fcn.004bb760
add esp, 0x14
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4d331d
push str.Host:
push dword [ebp + 8]
call fcn.004b54d0
add esp, 8
test eax, eax
jne 0x4d2c23
push dword [ebp - 0x1c]
push str.Host:__s_r_n
call fcn.004bb760
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4d32f6
push str.Proxy_Connection:
push dword [ebp + 8]
call fcn.004b54d0
test eax, eax
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
mov eax, 0x63cb94
push str.User_Agent:
push dword [ebp + 8]
cmovne ecx, eax
mov dword [ebp - 0xc], ecx
call fcn.004b54d0
add esp, 0x10
test eax, eax
jne 0x4d2c6a
cmp dword [esi + 0x408], eax
je 0x4d2c6a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2d8]
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x63cb94
push dword [ebp - 0x18]
mov eax, dword [eax + 0x2d4]
test eax, eax
cmovne ecx, eax
push ecx
push edi
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebx
call fcn.004b5120
mov edi, eax
add esp, 0x20
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4d2cb1
cmp byte [eax], 0
je 0x4d2cb1
push eax
call dword [0x65f004]
add esp, 4
push dword [ebp - 0x1c]
call dword [0x65f004]
add esp, 4
test edi, edi
jne 0x4d2d02
push ebx
push 1
push dword [ebp + 8]
call fcn.004b5190
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4d2d02
push 0x644310
push ebx
call fcn.004b5120
mov edi, eax
add esp, 8
test edi, edi
jne 0x4d2d02
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x878c]
push eax
push dword [ebp + 8]
push ebx
call fcn.004b4f60
add esp, 0x14
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x4d2d16
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.004b0910
add esp, 8
push ebx
call fcn.004b4f20
add esp, 4
test edi, edi
jne 0x4d3314
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
mov dword [eax], 1
push 1
push 0
push esi
call fcn.004b1a50
add esp, 0xc
test edx, edx
jl 0x4d348a
jg 0x4d2d52
test eax, eax
je 0x4d348a
cmp byte [ebp + 0x18], 0
jne 0x4d2d6c
push edi
push dword [ebp + 8]
call fcn.004b1110
add esp, 8
test al, al
je 0x4d3481
lea edi, [esi + 0x624]
xor eax, eax
mov ecx, 1
mov dword [ebp - 0x14], edi
mov ebx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4d2e7c
push dword [ebp + 8]
call fcn.004b9830
add esp, 4
test eax, eax
jne 0x4d337c
lea eax, [esi + 0x4624]
cmp edi, eax
jae 0x4d3372
push 1
push 0
push esi
call fcn.004b1a50
mov edi, eax
add esp, 0xc
mov eax, edx
mov dword [ebp - 0x34], eax
test eax, eax
jl 0x4d3281
jg 0x4d2dd6
test edi, edi
je 0x4d3281
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.004b0a30
add esp, 0x14
cmp eax, 0x51
jne 0x4d2e2c
mov eax, dword [ebp - 0x34]
test eax, eax
jg 0x4d2e03
jl 0x4d2e0a
cmp edi, 0x3e8
jb 0x4d2e0a
mov edi, 0x3e8
xor eax, eax
push eax
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x28]
call fcn.004b0230
add esp, 0x14
cmp eax, 0xffffffff
je 0x4d321c
mov edi, dword [ebp - 0x14]
jmp 0x4d3132
test eax, eax
jne 0x4d2e7c
cmp dword [ebp - 0x2c], eax
jle 0x4d3237
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0x18], edx
cmp ecx, 1
jle 0x4d2f1a
mov edx, dword [ebp - 0x24]
lea edi, [esi + 0x624]
mov dword [ebp - 0x18], eax
mov eax, edx
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], edi
je 0x4d2ed7
add edx, 0xffffffff
mov dword [ebp - 0x24], edx
adc dword [ebp - 0x20], 0xffffffff
js 0x4d2e7c
jg 0x4d2d87
test edx, edx
jne 0x4d2d87
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.004b9830
add esp, 4
test eax, eax
jne 0x4d337c
test edi, edi
jne 0x4d3346
cmp dword [esi + 0x8778], 0xc8
je 0x4d329c
push dword [ebp + 8]
call fcn.004b5730
add esp, 4
test eax, eax
jne 0x4d349d
mov eax, dword [ebp + 8]
cmp byte [eax + 0x285], 0
je 0x4d329f
mov bl, 1
mov byte [ebp - 1], bl
jmp 0x4d32a6
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 1
push edi
push dword [ebp + 8]
call fcn.004d4870
mov ecx, dword [ebp - 0xc]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d2d87
push str.chunk_reading_DONE_n
push esi
call fcn.004b09b0
mov eax, dword [ebp - 8]
add esp, 8
xor ecx, ecx
mov dword [eax], 2
jmp 0x4d2d84
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp byte [edi], 0xa
je 0x4d2f32
inc edi
mov dword [ebp - 0x14], edi
jmp 0x4d3135
cmp byte [esi + 0x348], 0
mov edi, dword [ebp + 8]
je 0x4d2f4f
push edi
push ecx
push ebx
push 1
push esi
call fcn.004b0830
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
cmp byte [esi + 0x33d], 0
mov edx, 3
push ecx
mov eax, 2
cmovne eax, edx
push ebx
push eax
push edi
call fcn.004b0800
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add dword [esi + 0x8788], ecx
add dword [esi + 0x80], ecx
test eax, eax
jne 0x4d349d
mov al, byte [ebx]
cmp al, 0xd
je 0x4d3149
cmp al, 0xa
je 0x4d3149
push 0x11
push ebx
push str.WWW_Authenticate:
mov byte [ecx + ebx], 0
call fcn.004bad00
add esp, 0xc
test eax, eax
je 0x4d2fbd
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x4d2fde
push 0x13
push ebx
push str.Proxy_authenticate:
call fcn.004bad00
add esp, 0xc
test eax, eax
je 0x4d3023
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x4d3023
cmp eax, 0x197
push ebx
sete byte [ebp - 0x38]
call fcn.004b5660
mov edi, eax
add esp, 4
test edi, edi
je 0x4d3326
push edi
push dword [ebp - 0x38]
push dword [ebp + 8]
call fcn.004b5900
push edi
mov ebx, eax
call dword [0x65f004]
add esp, 0x10
test ebx, ebx
je 0x4d3122
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf
push ebx
push str.Content_Length:
call fcn.004bad00
add esp, 0xc
test eax, eax
je 0x4d3070
mov eax, 0x51eb851f
imul dword [esi + 0xc8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4d3332
push 0xa
lea eax, [ebx + 0xf]
push 0
push eax
call fcn.005b7366
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x4d3122
push str.close
push str.Connection:
push ebx
call fcn.004b5590
add esp, 0xc
test al, al
je 0x4d3090
mov byte [ebp - 1], 1
jmp 0x4d3122
push str.chunked
push str.Transfer_Encoding:
push ebx
call fcn.004b5590
add esp, 0xc
test al, al
je 0x4d30df
mov eax, 0x51eb851f
imul dword [esi + 0xc8]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4d3352
push str.CONNECT_responded_chunked_n
push esi
call fcn.004b09b0
push edi
mov byte [ebp - 2], 1
call fcn.004d4850
add esp, 0xc
jmp 0x4d3122
push str.close
push str.Proxy_Connection:
push ebx
call fcn.004b5590
add esp, 0xc
test al, al
je 0x4d30fc
mov byte [ebp - 1], 1
jmp 0x4d3122
lea edi, [esi + 0xc8]
push edi
lea eax, [ebp - 0x40]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.0047cc50
add esp, 0x10
cmp eax, 2
jne 0x4d3122
mov eax, dword [edi]
mov dword [esi + 0x8778], eax
lea edi, [esi + 0x624]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ebx, edi
mov dword [ebp - 0x14], edi
mov edx, dword [ebp - 0x18]
cmp edx, 0x4000
jae 0x4d2e7c
mov ecx, dword [ebp - 0xc]
jmp 0x4d2d87
xor eax, eax
lea edi, [esi + 0x624]
cmp dword [esi + 0xc8], 0x197
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
jne 0x4d3209
cmp byte [esi + 0x86c8], al
jne 0x4d3209
mov edx, dword [ebp - 0x24]
mov eax, edx
mov ecx, dword [ebp - 0x20]
or eax, ecx
mov dword [ebp - 0xc], 2
je 0x4d31a7
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.004b09b0
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 2
jmp 0x4d2d87
cmp byte [ebp - 2], 0
je 0x4d3209
push str.Ignore_chunked_response_body_n
push esi
call fcn.004b09b0
lea eax, [ebx + 1]
mov byte [esi + 0xfd], 1
cmp byte [eax], 0xa
cmove ebx, eax
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
call fcn.004d4870
add esp, 0x18
cmp eax, 0xffffffff
jne 0x4d3196
push str.chunk_reading_DONE_n
push esi
call fcn.004b09b0
mov eax, dword [ebp - 8]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [eax], 2
mov dword [eax], 2
jmp 0x4d2d87
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [eax], 2
jmp 0x4d2d87
push str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov edi, 1
push esi
mov dword [ebp - 0x10], edi
call fcn.004b0910
add esp, 8
jmp 0x4d2e7f
cmp dword [esi + 0x140], 0
je 0x4d3266
cmp dword [esi + 0x86c0], 0
je 0x4d3266
mov eax, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push esi
mov byte [eax + 0x29e], 1
call fcn.004b09b0
add esp, 8
jmp 0x4d2e7c
push str.Proxy_CONNECT_aborted
mov edi, 1
push esi
mov dword [ebp - 0x10], edi
call fcn.004b0910
add esp, 8
jmp 0x4d2e7f
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.004b0910
mov edi, 2
add esp, 8
mov dword [ebp - 0x10], edi
jmp 0x4d2e7f
mov eax, dword [ebp + 8]
mov bl, byte [ebp - 1]
test bl, bl
je 0x4d32b3
cmp dword [esi + 0x104], 0
jne 0x4d3388
cmp dword [esi + 0x104], 0
mov ecx, dword [ebp - 8]
je 0x4d339e
cmp dword [ecx], 2
jne 0x4d32e1
push 0
push str.TUNNEL_STATE_switched_to:__d_n
push esi
mov dword [ecx], 0
call fcn.004b09b0
mov ecx, dword [ebp - 8]
add esp, 0xc
cmp dword [esi + 0x104], 0
je 0x4d339e
mov edi, dword [ebp + 0xc]
jmp 0x4d2af0
push dword [ebp - 0x1c]
call dword [0x65f004]
push ebx
call fcn.004b4f20
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004b4f20
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc8]
push str.Content_Length:_in__03d_response
push esi
call fcn.004b0910
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc8]
push str.Transfer_Encoding:_in__03d_response
push esi
call fcn.004b0910
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
jmp 0x4d348f
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.004b10b0
add esp, 8
mov dword [edi], 0xffffffff
jmp 0x4d33a1
mov edi, dword [ebp - 0x30]
cmp dword [esi + 0xc8], 0xc8
je 0x4d343c
test bl, bl
je 0x4d33d8
cmp dword [esi + 0x104], 0
je 0x4d33d8
mov ebx, dword [ebp + 8]
push str.Connect_me_again_please_n
push esi
mov byte [ebx + 0x29e], 1
call fcn.004b09b0
add esp, 8
jmp 0x4d340a
push dword [esi + 0x104]
call dword [0x65f004]
mov ebx, dword [ebp + 8]
push 2
push ebx
mov dword [esi + 0x104], 0
call fcn.004b11d0
push dword [edi]
push ebx
call fcn.004b10b0
add esp, 0x14
mov dword [edi], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [eax], 0
cmp byte [ebx + 0x29e], 0
jne 0x4d3481
push dword [esi + 0xc8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.004b0910
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [eax], 2
push dword [ebx + 0x2d4]
call dword [0x65f004]
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [ebx + 0x2d4], 0
push esi
mov byte [esi + 0x86c4], 1
call fcn.004b09b0
mov byte [esi + 0xfd], 0
add esp, 0xc
mov byte [ebx + 0x297], 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.004b0910
mov eax, 0x38
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret