Function at 0x458750
Capabilities:
Check http status code

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x134]
push ebx
push ebp
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x34], 0
mov ebx, dword [ebp + 0x460]
mov ecx, dword [ebp + eax*4 + 0x148]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
test ebx, ebx
je 0x458790
cmp dword [ebx + 0x1f0], 2
jl 0x458798
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
mov dword [ebp + 0x28c], 0
push edi
cmp dword [ebx + 0x1f0], 0
jne 0x45896f
mov edi, dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
push edi
push eax
push str.Establish_HTTP_proxy_tunnel_to__s:_d
push esi
lea ebp, [ebx + 0x1cc]
call fcn.0042c140
mov ecx, dword [esi + 0x128]
push ecx
call dword [0x7c6024]
push 0x100000
push ebp
mov dword [esi + 0x128], 0
call fcn.0042d250
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x70]
push edi
mov edi, dword [esp + 0x38]
push esi
call fcn.004586a0
add esp, 0x2c
test eax, eax
jne 0x45920d
mov ecx, dword [esp + 0x14]
push 1
push ecx
push eax
push str.CONNECT
mov edx, edi
push edx
push esi
call fcn.004440a0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x458940
mov edi, dword [esp + 0x10]
cmp dword [edi + 0xb8], 1
mov eax, 0x7b7451
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x72b798
je 0x458868
mov dword [esp + 0x24], 0x72b79c
push str.Proxy_Connection
push edi
push esi
call fcn.00443a50
add esp, 0xc
test eax, eax
jne 0x458883
mov dword [esp + 0x1c], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push edi
push esi
call fcn.00443a50
add esp, 0xc
test eax, eax
jne 0x4588a8
cmp dword [esi + 0x624], eax
je 0x4588a8
mov eax, dword [esi + 0xe18]
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0xe14]
test ecx, ecx
jne 0x4588b7
mov ecx, 0x7b7451
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4588c4
mov eax, 0x7b7451
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push edx
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ebp
call fcn.0042d3c0
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x458932
push ebp
push 1
push esi
call fcn.00444d30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x458932
push 0x7bc894
push ebp
call fcn.0042d370
mov edi, eax
add esp, 8
test edi, edi
jne 0x458932
mov edx, dword [esp + 0x48]
push edx
push eax
push eax
lea eax, [esi + 0xee8]
push eax
push esi
push ebp
call fcn.004445d0
mov edi, eax
add esp, 0x18
test edi, edi
je 0x458940
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.0042c1c0
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x7c6024]
mov edx, dword [esp + 0x18]
push edx
call dword [0x7c6024]
add esp, 8
test edi, edi
jne 0x45905f
mov ebp, dword [esp + 0x10]
mov dword [ebx + 0x1f0], 1
push 1
push 0
push esi
call fcn.0042d720
add esp, 0xc
test edx, edx
jl 0x459068
jg 0x45898e
test eax, eax
je 0x459068
mov eax, dword [esp + 0x48]
push eax
push ebp
call fcn.0042e770
add esp, 8
test eax, eax
jne 0x4589b0
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 0x1a0], eax
je 0x45920b
mov edx, dword [esp + 0x28]
cmp dword [edx + 0x1a0], 1
jne 0x458a05
cmp dword [ebx + 0x1dc], 0
jne 0x459082
mov eax, dword [esi + 0xa20]
lea ecx, [esp + 0x30]
mov dword [esi + 0x130], eax
mov edx, dword [esi + 0x544]
push ecx
push edx
push esi
call fcn.0044e5d0
add esp, 0xc
test eax, eax
jne 0x45920d
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x1dc], eax
test eax, eax
jne 0x459082
cmp dword [ebx + 0x1e0], 0
mov dword [esp + 0x24], 0
je 0x458ac0
lea ebx, [ebx]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
push 1
lea edx, [esp + 0x17]
push edx
push eax
push esi
call fcn.0042c030
mov edi, eax
add esp, 0x14
cmp edi, 0x51
je 0x45920b
push esi
call fcn.0044db80
add esp, 4
test eax, eax
jne 0x4590fd
xor ebp, ebp
cmp edi, ebp
jne 0x458ab6
cmp dword [esp + 0x2c], ebp
jle 0x45900b
mov edx, 2
cmp dword [ebx + 0x1e0], edx
jne 0x458c29
mov eax, dword [ebx + 0x1e8]
mov ecx, dword [ebx + 0x1ec]
mov edi, eax
or edi, ecx
je 0x458be9
sub eax, 1
sbb ecx, ebp
mov dword [ebx + 0x1e8], eax
mov dword [ebx + 0x1ec], ecx
cmp ecx, ebp
jl 0x458ab0
jg 0x458f7f
cmp eax, ebp
ja 0x458f7f
mov dword [ebx + 0x1f0], edx
mov dword [ebx + 0x1e0], ebp
mov ebp, dword [esp + 0x10]
push esi
call fcn.0044db80
add esp, 4
test eax, eax
jne 0x4590fd
cmp dword [esp + 0x24], eax
jne 0x4591a3
mov eax, 0x51eb851f
imul dword [esi + 0xecc]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x458b18
push esi
call fcn.004476a0
add esp, 4
test eax, eax
jne 0x45920d
cmp dword [ebp + 0x290], eax
je 0x458b18
mov dword [ebx + 0x1f8], 1
cmp dword [ebx + 0x1f8], 0
je 0x458b2e
cmp dword [esi + 0x128], 0
jne 0x459109
cmp dword [esi + 0x128], 0
je 0x458b89
cmp dword [ebx + 0x1f0], 2
jne 0x458b7c
mov edx, dword [esi + 0xc]
mov edi, dword [edx + 0x460]
lea eax, [edi + 0x1bc]
push eax
call fcn.0042d330
add esp, 4
xor eax, eax
mov dword [edi + 0x1f0], eax
mov dword [edi + 0x1e0], 1
mov dword [edi + 0x1e8], eax
mov dword [edi + 0x1ec], eax
mov dword [edi + 0x1f8], eax
cmp dword [esi + 0x128], 0
jne 0x4587a3
mov edi, dword [esp + 0x48]
mov eax, 0x51eb851f
imul dword [esi + 0xecc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4591af
cmp dword [ebx + 0x1f8], 0
je 0x45912f
cmp dword [esi + 0x128], 0
je 0x45912f
push str.Connect_me_again_please
push esi
mov dword [ebp + 0x28c], 1
call fcn.0042c140
add esp, 8
mov edi, esi
call fcn.00458640
jmp 0x45916b
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
push 1
lea eax, [esp + 0x1b]
push eax
push esi
mov dword [esp + 0x34], ebp
call fcn.00457b30
add esp, 0x14
cmp eax, 0xffffffff
jne 0x458f7f
push str.chunk_reading_DONE
push esi
call fcn.0042c140
add esp, 8
mov dword [ebx + 0x1e0], ebp
jmp 0x458f75
push 1
lea ecx, [esp + 0x13]
lea eax, [ebx + 0x1bc]
push ecx
push eax
call fcn.0042d350
add esp, 0xc
test eax, eax
jne 0x4590d7
cmp byte [esp + 0xf], 0xa
jne 0x458f7f
lea ebp, [ebx + 0x1bc]
push ebp
call fcn.0042d3e0
push ebp
mov edi, eax
call fcn.0042d400
mov ebp, eax
push ebp
push edi
push 1
push esi
call fcn.0042c0a0
add esp, 0x18
cmp dword [esi + 0x818], 0
jne 0x458ca5
cmp dword [esi + 0x7b8], 0
mov eax, 2
je 0x458c91
mov eax, 3
push ebp
push edi
push eax
push esi
call fcn.0042c5a0
add esp, 0x10
test eax, eax
jne 0x45920d
mov eax, ebp
cdq
add dword [esi + 0xee0], eax
adc dword [esi + 0xee4], edx
mov al, byte [edi]
cmp al, 0xd
je 0x458f11
cmp al, 0xa
je 0x458f11
push 0x11
push edi
push str.WWW_Authenticate:
call fcn.00426250
add esp, 0xc
test eax, eax
je 0x458ce7
mov eax, dword [esi + 0xf0]
cmp eax, 0x191
je 0x458d08
push 0x13
push edi
push str.Proxy_authenticate:
call fcn.00426250
add esp, 0xc
test eax, eax
je 0x458d4c
mov eax, dword [esi + 0xf0]
cmp eax, 0x197
jne 0x458d4c
xor edx, edx
cmp eax, 0x197
sete dl
push edi
mov ebp, edx
call fcn.00443ad0
mov edi, eax
add esp, 4
test edi, edi
je 0x4590f1
push edi
push ebp
push esi
call fcn.00444230
push edi
mov ebp, eax
call dword [0x7c6024]
add esp, 0x10
test ebp, ebp
je 0x458f00
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x38
ret
push 0xf
push edi
push str.Content_Length:
call fcn.00426250
add esp, 0xc
test eax, eax
je 0x458dca
mov ecx, dword [esi + 0xf0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x458d9f
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push esi
call fcn.0042c140
lea eax, [ebx + 0x1bc]
add esp, 0xc
push eax
call fcn.0042d330
add esp, 4
jmp 0x458f7f
lea ecx, [ebx + 0x1e8]
push ecx
push 0xa
push 0
add edi, 0xf
push edi
call fcn.00451360
lea eax, [ebx + 0x1bc]
add esp, 0x10
push eax
call fcn.0042d330
add esp, 4
jmp 0x458f7f
push str.close
push str.Connection:
push edi
call fcn.00444890
add esp, 0xc
test eax, eax
je 0x458dff
lea eax, [ebx + 0x1bc]
push eax
mov dword [ebx + 0x1f8], 1
call fcn.0042d330
add esp, 4
jmp 0x458f7f
push 0x12
push edi
push str.Transfer_Encoding:
call fcn.00426250
add esp, 0xc
test eax, eax
je 0x458ea3
mov ecx, dword [esi + 0xf0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x458e56
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push esi
call fcn.0042c140
lea eax, [ebx + 0x1bc]
add esp, 0xc
push eax
call fcn.0042d330
add esp, 4
jmp 0x458f7f
push str.chunked
push str.Transfer_Encoding:
push edi
call fcn.00444890
add esp, 0xc
test eax, eax
je 0x458f00
push str.CONNECT_responded_chunked
push esi
call fcn.0042c140
push esi
mov dword [ebx + 0x1f4], 1
call fcn.00457b00
lea eax, [ebx + 0x1bc]
add esp, 0xc
push eax
call fcn.0042d330
add esp, 4
jmp 0x458f7f
push str.close
push str.Proxy_Connection:
push edi
call fcn.00444890
add esp, 0xc
test eax, eax
je 0x458ed8
lea eax, [ebx + 0x1bc]
push eax
mov dword [ebx + 0x1f8], 1
call fcn.0042d330
add esp, 4
jmp 0x458f7f
lea ebp, [esi + 0xf0]
push ebp
lea ecx, [esp + 0x3c]
push ecx
push str.HTTP_1._d__d
push edi
call fcn.004d20a5
add esp, 0x10
cmp eax, 2
jne 0x458f00
mov edx, dword [ebp]
mov dword [esi + 0xecc], edx
lea eax, [ebx + 0x1bc]
push eax
call fcn.0042d330
add esp, 4
jmp 0x458f7f
cmp dword [esi + 0xf0], 0x197
jne 0x458ffc
cmp dword [esi + 0xe60], 0
jne 0x458ffc
mov eax, dword [ebx + 0x1e8]
mov ecx, dword [ebx + 0x1ec]
mov edx, eax
or edx, ecx
mov dword [ebx + 0x1e0], 2
je 0x458f91
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body
push esi
call fcn.0042c140
add esp, 0x10
cmp dword [ebx + 0x1e0], 0
jne 0x458a20
mov edx, dword [ebx + 0x1e8]
or edx, dword [ebx + 0x1ec]
jne 0x458f7f
mov dword [ebx + 0x1f0], 2
cmp dword [ebx + 0x1e0], 0
jne 0x458a20
jmp 0x458abc
cmp dword [ebx + 0x1f4], 0
je 0x458ffc
push str.Ignore_chunked_response_body
push esi
call fcn.0042c140
add esp, 8
mov dword [esi + 0x148], 1
cmp byte [edi + 1], 0xa
jne 0x458fb9
inc edi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
push ecx
push 1
inc edi
push edi
push esi
call fcn.00457b30
add esp, 0x14
cmp eax, 0xffffffff
jne 0x458f5a
push str.chunk_reading_DONE
push esi
call fcn.0042c140
add esp, 8
mov dword [ebx + 0x1e0], 0
mov dword [ebx + 0x1f0], 2
jmp 0x458f67
mov dword [ebx + 0x1e0], 0
jmp 0x458f67
cmp dword [esi + 0x188], ebp
je 0x459044
cmp dword [esi + 0xb00], ebp
je 0x459044
cmp dword [esi + 0xe14], ebp
je 0x459044
mov eax, dword [esp + 0x10]
push str.Proxy_CONNECT_connection_closed
push esi
mov dword [eax + 0x28c], 1
call fcn.0042c140
add esp, 8
jmp 0x458ab6
push str.Proxy_CONNECT_aborted
push esi
mov dword [esp + 0x2c], 1
call fcn.0042c1c0
add esp, 8
jmp 0x458ab6
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0042c1c0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x38
ret
mov edx, dword [ebx + 0x1dc]
mov eax, dword [esi + 0x130]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [ebp + 0x34c]
push edx
push eax
push ecx
push esi
call fcn.0042bef0
add esp, 0x14
test eax, eax
jne 0x4590c0
mov edx, dword [esp + 0x48]
mov eax, dword [esi + 0x130]
push edx
push eax
push 2
push esi
call fcn.0042c0a0
add esp, 0x10
mov ecx, dword [esp + 0x48]
sub dword [ebx + 0x1dc], ecx
add dword [esi + 0x130], ecx
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
push str.CONNECT_response_too_large_
push esi
call fcn.0042c1c0
add esp, 8
pop edi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x38
ret
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x38
ret
pop edi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x38
ret
mov edi, dword [esp + 0x48]
mov ecx, dword [ebp + edi*4 + 0x148]
push ecx
push ebp
push esi
call fcn.0042e580
add esp, 0xc
mov dword [ebp + edi*4 + 0x148], 0xffffffff
jmp 0x458b8d
mov ecx, dword [esi + 0x128]
push ecx
call dword [0x7c6024]
push 2
push ebp
mov dword [esi + 0x128], 0
call fcn.0042e720
mov edx, dword [ebp + edi*4 + 0x148]
push edx
push ebp
push esi
call fcn.0042e580
add esp, 0x18
mov dword [ebp + edi*4 + 0x148], 0xffffffff
mov dword [ebx + 0x1f0], 0
cmp dword [ebp + 0x28c], 0
jne 0x45920b
add ebx, 0x1bc
push ebx
call fcn.0042d270
mov eax, dword [esi + 0xf0]
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.0042c1c0
add esp, 0x10
pop edi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x38
ret
mov dword [ebx + 0x1f0], 2
mov ecx, dword [esi + 0xe14]
push ecx
call dword [0x7c6024]
mov edx, dword [esi + 0xecc]
push edx
xor edi, edi
push str.Proxy_replied__d_to_CONNECT_request
push esi
mov dword [esi + 0xe14], edi
mov dword [esi + 0xb04], 1
mov dword [esi + 0xb08], edi
call fcn.0042c140
add ebx, 0x1bc
mov dword [esi + 0x148], edi
push ebx
mov dword [ebp + 0x2c4], edi
call fcn.0042d270
add esp, 0x14
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x38
ret