Function at 0x4456f0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + eax*4 + 0x1b8]
push ebp
push esi
mov esi, dword [ebx + 0x44c]
xor ebp, ebp
push edi
mov edi, dword [ebx]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ecx
cmp esi, ebp
je 0x4461dc
cmp dword [esi + 0x4018], 2
je 0x4461dc
and dword [ebx + 0x2a4], 0xff7fffff
jmp 0x445740
cmp dword [esi + 0x4018], ebp
jne 0x4459bf
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push edi
call fcn.00423120
mov ecx, dword [edi + 0x150]
push ecx
call dword [0x6f0024]
add esp, 0x14
mov dword [edi + 0x150], ebp
call fcn.0043e370
mov dword [esp + 0x10], eax
cmp eax, ebp
je 0x44600b
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
push str._s:_d
call fcn.0042c380
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
je 0x445ffe
mov ecx, dword [esp + 0x34]
push 1
push ebx
push str.CONNECT
push ecx
call fcn.0043df60
push ebx
mov ebp, eax
call dword [0x6f0024]
add esp, 0x14
test ebp, ebp
jne 0x445996
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x34]
cmp dword [ebp + 0xf0], 1
mov eax, 0x6e47cc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x6782c8
je 0x4457fd
mov dword [esp + 0x20], 0x6782cc
mov eax, dword [ebp + 0x2a4]
mov ebx, dword [esp + 0x3c]
shr eax, 9
and eax, 1
cmp ebx, dword [ebp + 0x9c]
je 0x445826
push 0x3a
push ebx
call fcn.004bb280
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x445836
mov ecx, 0x673d64
mov eax, 0x673d60
jmp 0x44583d
mov ecx, 0x6e47cc
mov eax, ecx
mov edx, dword [esp + 0x40]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_d
call fcn.0042c380
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x446018
push str.Host
push ebp
call fcn.0043d910
add esp, 8
test eax, eax
jne 0x445888
push ebx
push str.Host:__s_r_n
call fcn.0042c380
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x446032
push str.Proxy_Connection
push ebp
call fcn.0043d910
add esp, 8
test eax, eax
jne 0x4458a2
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push ebp
call fcn.0043d910
add esp, 8
test eax, eax
jne 0x4458c6
cmp dword [edi + 0x9d4], eax
je 0x4458c6
mov eax, dword [ebp + 0x2f8]
mov dword [esp + 0x1c], eax
mov ebp, dword [ebp + 0x2f4]
mov ecx, ebp
test ebp, ebp
jne 0x4458d7
mov ecx, 0x6e47cc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4458e4
mov eax, 0x6e47cc
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x28]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push ecx
call fcn.0043f000
add esp, 0x20
cmp dword [esp + 0x14], 0
mov ebp, eax
je 0x44591f
mov edx, dword [esp + 0x14]
push edx
call dword [0x6f0024]
add esp, 4
push ebx
call dword [0x6f0024]
add esp, 4
test ebp, ebp
jne 0x44597c
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push eax
push 1
push ebx
call fcn.0043f2a0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x44597c
lea ecx, [esp + 0x10]
push 0x6e63c4
push ecx
call fcn.0043f000
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x44597c
mov edx, dword [esp + 0x38]
push edx
push eax
lea eax, [edi + 0xff0]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0043e3b0
add esp, 0x14
mov ebp, eax
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x445996
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.00423270
add esp, 8
lea edx, [esp + 0x10]
push edx
call fcn.0043e380
add esp, 4
test ebp, ebp
jne 0x446053
mov ebx, dword [esp + 0x34]
mov dword [esi + 0x4018], 1
mov dword [esi + 0x4000], ebp
push 1
push ebp
push edi
call fcn.00429700
add esp, 0xc
cmp edx, ebp
jl 0x44605d
jg 0x4459dd
cmp eax, ebp
jbe 0x44605d
mov eax, dword [esp + 0x38]
push eax
push ebx
call fcn.0042a4b0
add esp, 8
test eax, eax
je 0x4461dc
mov dword [esp + 0x20], ebp
cmp dword [esi + 0x4004], ebp
je 0x445acc
lea ebx, [esi + 0x4000]
lea esp, [esp]
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x446078
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call fcn.00423020
mov ebp, eax
add esp, 0x14
cmp ebp, 0x51
je 0x4461dc
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00448720
add esp, 4
test eax, eax
jne 0x446093
test ebp, ebp
jne 0x445abc
cmp dword [esp + 0x24], ebp
jle 0x445fb0
cmp dword [esi + 0x4004], 1
jle 0x445bdf
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x445b92
sub eax, 1
sbb ecx, ebp
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x445ab2
jg 0x445f9e
test eax, eax
ja 0x445f9e
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov ebx, dword [esp + 0x34]
xor ebp, ebp
push ebx
call fcn.00448720
add esp, 4
test eax, eax
jne 0x446093
cmp dword [esp + 0x20], ebp
jne 0x446086
mov eax, 0x51eb851f
imul dword [edi + 0xfd4]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x445b22
push ebx
call fcn.0043edd0
add esp, 4
cmp eax, ebp
jne 0x4461de
test byte [ebx + 0x2a4], 1
je 0x445b22
or dword [esi + 0x401c], 2
test byte [esi + 0x401c], 2
je 0x445b37
cmp dword [edi + 0x150], ebp
jne 0x4460a0
cmp dword [edi + 0x150], ebp
je 0x4460c4
cmp dword [esi + 0x4018], 2
jne 0x445b81
mov eax, dword [ebx + 0x44c]
and dword [eax + 0x401c], 0xfffffffd
mov dword [eax + 0x4018], ebp
mov dword [eax + 0x4004], 1
mov dword [eax + 0x4008], eax
mov dword [eax + 0x400c], eax
mov dword [eax + 0x4010], ebp
mov dword [eax + 0x4014], ebp
cmp dword [edi + 0x150], ebp
jne 0x445740
jmp 0x4460c4
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push ecx
mov dword [esp + 0x2c], 0
call fcn.00451d50
add esp, 0x10
cmp eax, 0xffffffff
jne 0x445f9e
push str.chunk_reading_DONE_n
push edi
call fcn.00423120
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
jmp 0x445f9e
inc dword [ebx]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [ebx]
je 0x445bfa
inc eax
mov dword [esi + 0x400c], eax
jmp 0x445f9e
test dword [edi + 0xa9c], 0x40000000
je 0x445c19
mov edx, dword [esi + 0x4008]
push ecx
push edx
push 1
push edi
call fcn.00423090
add esp, 0x10
test dword [edi + 0xaa0], 0x20000
jne 0x445c5b
test dword [edi + 0xa9c], 0x2000000
mov eax, 2
je 0x445c3b
mov eax, 3
mov ecx, dword [ebx]
mov edx, dword [esi + 0x4008]
push ecx
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.00423770
add esp, 0x10
test eax, eax
jne 0x4461de
mov eax, dword [ebx]
cdq
add dword [edi + 0xfe8], eax
adc dword [edi + 0xfec], edx
mov eax, dword [ebx]
cdq
add dword [edi + 0xb8], eax
adc dword [edi + 0xbc], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x445ec2
cmp cl, 0xa
je 0x445ec2
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.00421d80
add esp, 0xc
test eax, eax
je 0x445cc0
mov eax, dword [edi + 0x110]
cmp eax, 0x191
je 0x445ce7
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.00421d80
add esp, 0xc
test eax, eax
je 0x445d34
mov eax, dword [edi + 0x110]
cmp eax, 0x197
jne 0x445d34
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.0043d990
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x44600b
mov edx, dword [esp + 0x34]
push ebp
push ebx
push edx
call fcn.0043e070
push ebp
mov ebx, eax
call dword [0x6f0024]
add esp, 0x10
test ebx, ebx
je 0x445ea5
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x4008]
push 0xf
push eax
push str.Content_Length:
call fcn.00421d80
add esp, 0xc
test eax, eax
je 0x445da0
mov ecx, dword [edi + 0x110]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x445d7e
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.00423120
add esp, 0xc
jmp 0x445ea5
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.00451760
add esp, 0x10
jmp 0x445ea5
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.0043e6d0
add esp, 0xc
test eax, eax
je 0x445dc9
or dword [esi + 0x401c], 2
jmp 0x445ea5
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.00421d80
add esp, 0xc
test eax, eax
je 0x445e51
mov ecx, dword [edi + 0x110]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x445e13
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.00423120
add esp, 0xc
jmp 0x445ea5
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.0043e6d0
add esp, 0xc
test eax, eax
je 0x445ea5
push str.CONNECT_responded_chunked_n
push edi
call fcn.00423120
mov edx, dword [esp + 0x3c]
or dword [esi + 0x401c], 1
push edx
call fcn.00451d40
add esp, 0xc
jmp 0x445ea5
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.0043e6d0
add esp, 0xc
test eax, eax
je 0x445e77
or dword [esi + 0x401c], 2
jmp 0x445ea5
mov edx, dword [esi + 0x4008]
lea ebp, [edi + 0x110]
push ebp
lea ecx, [esp + 0x30]
push ecx
push str.HTTP_1._d__d
push edx
call fcn.004c0358
add esp, 0x10
cmp eax, 2
jne 0x445ea5
mov eax, dword [ebp]
mov dword [edi + 0xfd4], eax
lea ebx, [esi + 0x4000]
mov dword [ebx], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x445f9e
mov dword [esi + 0x400c], esi
cmp dword [edi + 0x110], 0x197
jne 0x445f7b
test byte [edi + 0xfa4], 0x20
jne 0x445f7b
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov ebp, 2
mov dword [esi + 0x4004], ebp
je 0x445f14
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.00423120
add esp, 0x10
jmp 0x445f8a
test byte [esi + 0x401c], 1
je 0x445f80
push str.Ignore_chunked_response_body_n
push edi
call fcn.00423120
or dword [edi + 0x598], 8
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x445f44
mov dword [esi + 0x4008], eax
mov ecx, dword [esi + 0x4008]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
push 1
inc ecx
push ecx
push edx
call fcn.00451d50
add esp, 0x10
cmp eax, 0xffffffff
jne 0x445f8a
push str.chunk_reading_DONE_n
push edi
call fcn.00423120
add esp, 8
mov dword [esi + 0x4018], ebp
jmp 0x445f80
mov ebp, 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x445f9e
mov dword [esi + 0x4018], ebp
cmp dword [esi + 0x4004], 0
jne 0x445a10
jmp 0x445ac6
cmp dword [edi + 0x5c8], 0
je 0x445fe3
cmp dword [edi + 0xd20], 0
je 0x445fe3
mov eax, dword [esp + 0x34]
or dword [eax + 0x2a4], 0x800000
push str.Proxy_CONNECT_connection_closed_n
push edi
call fcn.00423120
add esp, 8
jmp 0x445abc
push str.Proxy_CONNECT_aborted
push edi
mov dword [esp + 0x28], 1
call fcn.00423270
add esp, 8
jmp 0x445abc
lea edx, [esp + 0x10]
push edx
call fcn.0043e380
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
lea eax, [esp + 0x10]
push eax
call fcn.0043e380
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
push ebx
call dword [0x6f0024]
lea ecx, [esp + 0x14]
push ecx
call fcn.0043e380
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.00423270
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x20
ret
push str.CONNECT_response_too_large_
push edi
call fcn.00423270
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x38]
mov eax, dword [ebx + edx*4 + 0x1b8]
push eax
push ebx
call fcn.0042a2c0
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [ebx + ecx*4 + 0x1b8], 0xffffffff
mov eax, 0x51eb851f
imul dword [edi + 0xfd4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x446187
test byte [esi + 0x401c], 2
je 0x446114
cmp dword [edi + 0x150], ebp
je 0x446114
or dword [ebx + 0x2a4], 0x800000
push str.Connect_me_again_please_n
push edi
call fcn.00423120
add esp, 8
mov eax, ebx
call fcn.004456c0
jmp 0x446153
mov ecx, dword [edi + 0x150]
push ecx
call dword [0x6f0024]
push 2
push ebx
mov dword [edi + 0x150], ebp
call fcn.0042a450
mov edx, dword [esp + 0x44]
mov eax, dword [ebx + edx*4 + 0x1b8]
push eax
push ebx
call fcn.0042a2c0
mov ecx, dword [esp + 0x4c]
add esp, 0x14
mov dword [ebx + ecx*4 + 0x1b8], 0xffffffff
mov dword [esi + 0x4018], ebp
test dword [ebx + 0x2a4], 0x800000
jne 0x4461dc
mov edx, dword [edi + 0x110]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.00423270
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x20
ret
mov dword [esi + 0x4018], 2
mov eax, dword [ebx + 0x2f4]
push eax
call dword [0x6f0024]
mov dword [ebx + 0x2f4], ebp
mov ecx, dword [edi + 0xd24]
mov edx, dword [edi + 0xfd4]
push edx
and ecx, 0xfffffffd
or ecx, 1
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
mov dword [edi + 0xd24], ecx
call fcn.00423120
and dword [edi + 0x598], 0xfffffff7
add esp, 0x10
and dword [ebx + 0x2a4], 0xfffeffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret