Function at 0x48fde0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + ecx*4 + 0x420]
push esi
mov esi, dword [ebx + 0x72c]
xor eax, eax
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
cmp esi, eax
je 0x4908c0
cmp dword [esi + 0x4018], 2
je 0x4908c0
mov dword [ebx + 0x56c], eax
cmp dword [esi + 0x4018], 0
jne 0x490090
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
push eax
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.0046ae20
mov ecx, dword [edi + 0x140]
push ecx
call dword [0x4db928]
add esp, 0x14
mov dword [edi + 0x140], 0
call fcn.00484e90
mov dword [ebp - 4], eax
test eax, eax
je 0x4906fa
mov edx, dword [ebp + 0x10]
push ebx
push edx
push str._s:_d
call fcn.00473c90
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x4906ee
mov ecx, dword [ebp + 8]
push 1
push eax
push str.CONNECT
push ecx
call fcn.00484a70
mov edx, dword [ebp - 8]
push edx
mov ebx, eax
call dword [0x4db928]
add esp, 0x14
test ebx, ebx
jne 0x490069
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x358], 1
mov eax, 0x4d2a24
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x4c3bdc
je 0x48fed8
mov dword [ebp - 0x14], 0x4c3be0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x538]
cmp ebx, dword [ecx + 0x304]
je 0x48fefa
push 0x3a
push ebx
call fcn.004a1bd0
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x48ff0a
mov ecx, 0x4bfbc8
mov eax, 0x4bfbbc
jmp 0x48ff11
mov ecx, 0x4d2a24
mov eax, ecx
mov edx, dword [ebp + 0x14]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_d
call fcn.00473c90
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x490706
mov eax, dword [ebp + 8]
push str.Host
push eax
call fcn.00484420
add esp, 8
test eax, eax
jne 0x48ff60
push ebx
push str.Host:__s_r_n
call fcn.00473c90
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x49071e
mov ebx, dword [ebp + 8]
push str.Proxy_Connection
push ebx
call fcn.00484420
add esp, 8
test eax, eax
jne 0x48ff7c
mov dword [ebp - 0xc], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push ebx
call fcn.00484420
add esp, 8
test eax, eax
jne 0x48ff9f
cmp dword [edi + 0xa34], eax
je 0x48ff9f
mov ecx, dword [ebx + 0x5e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x5dc]
test ecx, ecx
jne 0x48ffae
mov ecx, 0x4d2a24
mov eax, dword [ebp - 8]
test eax, eax
jne 0x48ffba
mov eax, 0x4d2a24
mov edx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x10]
push edx
push ecx
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push ecx
lea edx, [ebp - 4]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push edx
call fcn.00485a90
add esp, 0x20
cmp dword [ebp - 8], 0
mov ebx, eax
je 0x48fff2
mov eax, dword [ebp - 8]
push eax
call dword [0x4db928]
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x4db928]
add esp, 4
test ebx, ebx
jne 0x490050
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
call fcn.00485d30
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x490050
lea ecx, [ebp - 4]
push 0x4c0504
push ecx
call fcn.00485a90
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x490050
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
lea eax, [edi + 0x1200]
push eax
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00484ed0
add esp, 0x14
mov ebx, eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x490069
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.0046af40
add esp, 8
lea eax, [ebp - 4]
push eax
call fcn.00484ea0
add esp, 4
test ebx, ebx
jne 0x49073d
mov dword [esi + 0x4000], ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x4018], 1
push 1
push 0
push edi
call fcn.0046f6a0
add esp, 0xc
test edx, edx
jl 0x490746
jg 0x4900af
test eax, eax
jbe 0x490746
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
call fcn.00470530
add esp, 8
test eax, eax
je 0x4908c0
cmp dword [esi + 0x4004], 0
mov dword [ebp - 0x18], 0
je 0x49019a
jmp 0x4900e0
mov eax, dword [esi + 0x400c]
lea ecx, [esi + 0x4000]
cmp eax, ecx
jae 0x490760
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
push 1
push eax
mov eax, dword [ebp - 0x20]
push eax
push ecx
call fcn.0046ad20
mov ebx, eax
add esp, 0x14
cmp ebx, 0x51
je 0x4908c0
mov edx, dword [ebp + 8]
push edx
call fcn.0048d680
add esp, 4
test eax, eax
jne 0x49077a
test ebx, ebx
jne 0x49018d
cmp dword [ebp - 0x1c], ebx
jle 0x490632
cmp dword [esi + 0x4004], 1
jle 0x490246
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x490202
sub eax, 1
sbb ecx, ebx
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x490183
jg 0x490620
test eax, eax
ja 0x490620
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov ebx, dword [ebp + 8]
push ebx
call fcn.0048d680
add esp, 4
test eax, eax
jne 0x49077a
cmp dword [ebp - 0x18], eax
jne 0x49076e
mov ecx, dword [edi + 0x11e4]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x49067e
push ebx
call fcn.00485850
add esp, 4
test eax, eax
jne 0x4908c2
xor ecx, ecx
cmp dword [ebx + 0x510], ecx
je 0x490680
mov dword [esi + 0x4020], 1
jmp 0x490680
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 1
push esi
push edx
mov dword [ebp - 0x14], 0
call fcn.004954e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x490620
push str.chunk_reading_DONE_n
push edi
call fcn.0046ae20
add esp, 8
mov dword [esi + 0x4004], 0
jmp 0x490616
inc dword [esi + 0x4000]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [esi + 0x4000]
je 0x490269
inc eax
mov dword [esi + 0x400c], eax
jmp 0x490620
cmp dword [edi + 0xbb4], 0
je 0x490285
mov eax, dword [esi + 0x4008]
push ecx
push eax
push 1
push edi
call fcn.0046ad90
add esp, 0x10
cmp dword [edi + 0xc00], 0
jne 0x4902c4
cmp dword [edi + 0xba0], 0
mov eax, 2
je 0x4902a1
mov eax, 3
mov ecx, dword [esi + 0x4000]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0046b420
add esp, 0x10
test eax, eax
jne 0x4908c2
mov eax, dword [esi + 0x4000]
cdq
add dword [edi + 0x11f8], eax
adc dword [edi + 0x11fc], edx
mov eax, dword [esi + 0x4000]
cdq
add dword [edi + 0xa8], eax
adc dword [edi + 0xac], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x490543
cmp cl, 0xa
je 0x490543
mov ecx, dword [esi + 0x4000]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.00471d70
add esp, 0xc
test eax, eax
je 0x490335
mov eax, dword [edi + 0x100]
cmp eax, 0x191
je 0x49035c
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.00471d70
add esp, 0xc
test eax, eax
je 0x4903b1
mov eax, dword [edi + 0x100]
cmp eax, 0x197
jne 0x4903b1
mov edx, dword [esi + 0x4008]
xor ecx, ecx
cmp eax, 0x197
sete cl
push edx
mov dword [ebp - 0x14], ecx
call fcn.004844a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4906fa
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.00484b80
push ebx
mov dword [ebp - 0x14], eax
call dword [0x4db928]
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x490528
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x4008]
push 0xf
push edx
push str.Content_Length:
call fcn.00471d70
add esp, 0xc
test eax, eax
je 0x49041d
mov ecx, dword [edi + 0x100]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4903fb
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.0046ae20
add esp, 0xc
jmp 0x490528
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.00493a20
add esp, 0x10
jmp 0x490528
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.004851d0
add esp, 0xc
test eax, eax
je 0x490449
mov dword [esi + 0x4020], 1
jmp 0x490528
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.00471d70
add esp, 0xc
test eax, eax
je 0x4904d3
mov ecx, dword [edi + 0x100]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x490493
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.0046ae20
add esp, 0xc
jmp 0x490528
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.004851d0
add esp, 0xc
test eax, eax
je 0x490528
push str.CONNECT_responded_chunked_n
push edi
call fcn.0046ae20
mov edx, dword [ebp + 8]
push edx
mov dword [esi + 0x401c], 1
call fcn.004954c0
add esp, 0xc
jmp 0x490528
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.004851d0
add esp, 0xc
test eax, eax
je 0x4904fc
mov dword [esi + 0x4020], 1
jmp 0x490528
mov edx, dword [esi + 0x4008]
lea ebx, [edi + 0x100]
push ebx
lea ecx, [ebp - 0x24]
push ecx
push str.HTTP_1._d__d
push edx
call fcn.004a2899
add esp, 0x10
cmp eax, 2
jne 0x490528
mov eax, dword [ebx]
mov dword [edi + 0x11e4], eax
mov dword [esi + 0x4000], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x490620
mov dword [esi + 0x400c], esi
xor ebx, ebx
cmp dword [edi + 0x100], 0x197
jne 0x490602
cmp dword [edi + 0x1188], ebx
jne 0x490602
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x4004], 2
je 0x490595
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.0046ae20
add esp, 0x10
jmp 0x490608
cmp dword [esi + 0x401c], ebx
je 0x490602
push str.Ignore_chunked_response_body_n
push edi
call fcn.0046ae20
mov dword [edi + 0x594], 1
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x4905c7
mov dword [esi + 0x4008], eax
mov edx, dword [esi + 0x4008]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push 1
inc edx
push edx
push eax
call fcn.004954e0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x490608
push str.chunk_reading_DONE_n
push edi
call fcn.0046ae20
add esp, 8
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], ebx
mov ecx, dword [esi + 0x4010]
or ecx, dword [esi + 0x4014]
jne 0x490620
mov dword [esi + 0x4018], 2
cmp dword [esi + 0x4004], 0
jne 0x4900e0
jmp 0x490197
cmp dword [edi + 0x5d8], 0
je 0x490664
cmp dword [edi + 0xec0], 0
je 0x490664
mov edx, dword [ebp + 8]
push str.Proxy_CONNECT_connection_closed_n
push edi
mov dword [edx + 0x56c], 1
call fcn.0046ae20
add esp, 8
jmp 0x49018d
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x18], 1
call fcn.0046af40
add esp, 8
jmp 0x49018d
xor ecx, ecx
cmp dword [esi + 0x4020], ecx
je 0x490694
cmp dword [edi + 0x140], ecx
jne 0x490786
cmp dword [edi + 0x140], ecx
je 0x4907aa
cmp dword [esi + 0x4018], 2
jne 0x4906dd
mov eax, dword [ebx + 0x72c]
mov dword [eax + 0x4018], ecx
mov dword [eax + 0x4004], 1
mov dword [eax + 0x4008], eax
mov dword [eax + 0x400c], eax
mov dword [eax + 0x4010], ecx
mov dword [eax + 0x4014], ecx
mov dword [eax + 0x4020], ecx
cmp dword [edi + 0x140], ecx
jne 0x48fe21
jmp 0x4907aa
lea ecx, [ebp - 4]
push ecx
call fcn.00484ea0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
call fcn.00484ea0
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x4db928]
lea eax, [ebp - 4]
push eax
call fcn.00484ea0
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.0046af40
add esp, 8
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push edi
call fcn.0046af40
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + ecx*4 + 0x420]
push edx
push ebx
call fcn.00470320
mov eax, dword [ebp + 0xc]
add esp, 8
mov dword [ebx + eax*4 + 0x420], 0xffffffff
xor ecx, ecx
mov edx, dword [edi + 0x11e4]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x490870
cmp dword [esi + 0x4020], ecx
je 0x4907fb
cmp dword [edi + 0x140], ecx
je 0x4907fb
push str.Connect_me_again_please_n
push edi
mov dword [ebx + 0x56c], 1
call fcn.0046ae20
add esp, 8
mov eax, ebx
call fcn.0048fdb0
jmp 0x49083c
mov ecx, dword [edi + 0x140]
push ecx
call dword [0x4db928]
push 2
push ebx
mov dword [edi + 0x140], 0
call fcn.004704e0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + edx*4 + 0x420]
push eax
push ebx
call fcn.00470320
mov ecx, dword [ebp + 0xc]
add esp, 0x14
mov dword [ebx + ecx*4 + 0x420], 0xffffffff
mov dword [esi + 0x4018], 0
cmp dword [ebx + 0x56c], 0
jne 0x4908c0
mov edx, dword [edi + 0x100]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.0046af40
add esp, 0xc
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x4018], 2
mov eax, dword [ebx + 0x5dc]
push eax
call dword [0x4db928]
xor esi, esi
mov dword [ebx + 0x5dc], esi
mov ecx, dword [edi + 0x11e4]
push ecx
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
mov dword [edi + 0xec4], 1
mov dword [edi + 0xec8], esi
call fcn.0046ae20
mov dword [edi + 0x594], esi
add esp, 0x10
mov dword [ebx + 0x554], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret