Function at 0x10026e9b
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x2c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, dword [edi + eax*4 + 0x1a8]
mov esi, dword [edi]
mov ebx, dword [edi + 0x778]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 8], eax
call fcn.10027843
pop ecx
test eax, eax
je 0x10026ed7
xor eax, eax
jmp 0x1002783e
and dword [edi + 0x428], 0
mov dword [ebp - 0x1c], 0x1009231d
mov dword [ebp - 0x14], 0x64
xor eax, eax
inc eax
cmp dword [ebx + 0x401c], 0
jne 0x10027139
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push esi
call fcn.100253dd
push dword [esi + 0x148]
call dword [0x1009d004]
and dword [esi + 0x148], 0
add esp, 0x14
call fcn.1002b6cc
mov dword [ebp + 8], eax
test eax, eax
je 0x100276f9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._s:_hu
call fcn.1002fcac
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10027700
push 1
push eax
push str.CONNECT
push edi
call fcn.1002c14f
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
call dword [0x1009d004]
add esp, 0x14
cmp dword [ebp - 4], 0
jne 0x10027117
and dword [ebp - 0x10], 0
cmp dword [edi + 0xf0], 1
mov edx, dword [edi + 0x3e8]
mov eax, 0x1009231d
mov dword [ebp - 4], eax
mov eax, 0x10082b6c
mov ecx, 0x10082b70
cmovne eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi + 0xa0]
je 0x10026fbf
push 0x3a
push eax
call fcn.1004f3b0
neg eax
sbb edx, edx
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
neg edx
push dword [ebp + 0x14]
test edx, edx
mov ecx, 0x10082320
cmove ecx, dword [ebp - 0x1c]
push ecx
push eax
mov ecx, 0x1009231d
mov eax, 0x10082324
cmove eax, ecx
push eax
push str._s_s_s:_hu
call fcn.1002fcac
add esp, 0x14
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10027700
push str.Host:
push edi
call fcn.1002bbaf
pop ecx
pop ecx
test eax, eax
jne 0x10027020
push dword [ebp - 0xc]
push str.Host:__s_r_n
call fcn.1002fcac
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100276e6
push str.Proxy_Connection:
push edi
call fcn.1002bbaf
test eax, eax
mov eax, 0x1009231d
mov ecx, str.Proxy_Connection:_Keep_Alive_r_n
cmovne ecx, eax
push str.User_Agent:
push edi
mov dword [ebp - 0x20], ecx
call fcn.1002bbaf
add esp, 0x10
test eax, eax
jne 0x10027060
cmp dword [esi + 0x4e4], eax
je 0x10027060
mov eax, dword [edi + 0x488]
mov dword [ebp - 4], eax
push dword [ebp - 0x20]
mov eax, dword [edi + 0x484]
push dword [ebp - 4]
mov edx, 0x1009231d
test eax, eax
mov ecx, edx
cmovne ecx, eax
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, edx
test ecx, ecx
cmovne eax, ecx
push eax
push dword [ebp - 0x24]
push dword [ebp - 0xc]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push dword [ebp + 8]
call fcn.1002b86f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
add esp, 0x20
test eax, eax
je 0x100270ac
push eax
call dword [0x1009d004]
pop ecx
push dword [ebp - 0xc]
call dword [0x1009d004]
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jne 0x10027102
push dword [ebp + 8]
push 1
push edi
call fcn.1002b8cb
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x10027102
push 0x10097160
push dword [ebp + 8]
call fcn.1002b86f
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x10027102
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x4b58]
push eax
push edi
push dword [ebp + 8]
call fcn.1002b6d9
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp + 8], 0
test eax, eax
je 0x10027117
push str.Failed_sending_CONNECT_to_proxy
push esi
call fcn.10025321
pop ecx
pop ecx
push dword [ebp + 8]
call fcn.1002b6ad
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jne 0x1002783e
inc eax
and dword [ebx + 0x4000], 0
mov dword [ebx + 0x401c], eax
push eax
push 0
push esi
call fcn.1002625e
add esp, 0xc
test edx, edx
jl 0x1002782e
jg 0x10027157
test eax, eax
je 0x1002782e
push dword [ebp + 0xc]
push edi
call fcn.10025aa2
pop ecx
pop ecx
test eax, eax
je 0x10026ed0
and dword [ebp + 8], 0
cmp dword [ebx + 0x4004], 0
je 0x10027662
lea edx, [ebx + 0x4000]
mov eax, dword [ebx + 0x400c]
cmp eax, edx
jae 0x10027711
lea ecx, [ebp - 0x18]
push ecx
push 1
push eax
push dword [ebp - 0x28]
push edi
call fcn.10025450
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp eax, 0x51
je 0x10026ed0
push edi
call fcn.1002e288
pop ecx
test eax, eax
jne 0x1002770a
cmp dword [ebp - 0x24], eax
jne 0x1002765b
cmp dword [ebp - 0x18], eax
jle 0x1002761e
xor ecx, ecx
inc ecx
cmp dword [ebx + 0x4004], ecx
jle 0x10027271
mov ecx, dword [ebx + 0x4010]
mov edx, dword [ebx + 0x4014]
mov eax, ecx
or eax, edx
mov dword [ebx + 0x400c], ebx
je 0x10027238
sub ecx, 1
sbb edx, 0
mov dword [ebx + 0x4014], edx
xor edx, edx
mov dword [ebx + 0x4010], ecx
cmp dword [ebx + 0x4014], edx
jl 0x1002760c
jg 0x10027220
cmp ecx, edx
jbe 0x1002760c
lea edx, [ebx + 0x4000]
cmp dword [ebx + 0x4004], 0
jne 0x10027181
jmp 0x10027662
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
push edi
call fcn.10043bd2
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10027220
push str.chunk_reading_DONE_n
push esi
call fcn.100253dd
and dword [ebx + 0x4004], 0
pop ecx
pop ecx
mov dword [ebx + 0x401c], 2
jmp 0x10027220
mov eax, dword [ebx + 0x400c]
lea edx, [ebx + 0x4000]
inc dword [edx]
cmp byte [eax], 0xa
je 0x1002728d
inc eax
mov dword [ebx + 0x400c], eax
jmp 0x10027226
cmp dword [esi + 0x3fc], 0
je 0x100272af
push edi
push dword [edx]
push dword [ebx + 0x4008]
push ecx
push esi
call fcn.1002525d
add esp, 0x14
lea edx, [ebx + 0x4000]
cmp dword [esi + 0x59c], 0
jne 0x100272e8
cmp dword [esi + 0x3e4], 0
push 2
pop eax
push 3
pop ecx
push dword [edx]
cmovne eax, ecx
push dword [ebx + 0x4008]
push eax
push edi
call fcn.10025230
add esp, 0x10
test eax, eax
jne 0x1002783e
lea edx, [ebx + 0x4000]
mov eax, dword [edx]
add dword [esi + 0x4b54], eax
mov eax, dword [edx]
add dword [esi + 0xa0], eax
mov ecx, dword [ebx + 0x4008]
mov al, byte [ecx]
cmp al, 0xd
je 0x1002750f
cmp al, 0xa
je 0x1002750f
mov eax, dword [edx]
push 0x11
mov byte [ecx + eax], 0
push dword [ebx + 0x4008]
push str.WWW_Authenticate:
call fcn.1002f418
add esp, 0xc
test eax, eax
je 0x1002733c
mov eax, dword [esi + 0xf8]
cmp eax, 0x191
je 0x10027362
push 0x13
push dword [ebx + 0x4008]
push str.Proxy_authenticate:
call fcn.1002f418
add esp, 0xc
test eax, eax
je 0x100273af
mov eax, dword [esi + 0xf8]
cmp eax, 0x197
jne 0x100273af
push dword [ebx + 0x4008]
xor ecx, ecx
cmp eax, 0x197
sete cl
mov dword [ebp - 0x24], ecx
call fcn.1002bcf4
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100276f9
push eax
push dword [ebp - 0x24]
push edi
call fcn.1002bf3c
push dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
call dword [0x1009d004]
mov eax, dword [ebp - 0x24]
add esp, 0x10
test eax, eax
jne 0x1002783e
jmp 0x100274f5
push 0xf
push dword [ebx + 0x4008]
push str.Content_Length:
call fcn.1002f418
add esp, 0xc
test eax, eax
je 0x10027411
mov ecx, dword [esi + 0xf8]
mov eax, ecx
cdq
idiv dword [ebp - 0x14]
cmp eax, 2
jne 0x100273ea
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push esi
call fcn.100253dd
jmp 0x1002749d
mov eax, dword [ebx + 0x4008]
push 0xa
add eax, 0xf
push 0
push eax
call fcn.1004fc3a
add esp, 0xc
mov dword [ebx + 0x4010], eax
mov dword [ebx + 0x4014], edx
jmp 0x100274f5
push str.close
push str.Connection:
push dword [ebx + 0x4008]
call fcn.1002bc51
add esp, 0xc
test eax, eax
jne 0x100274be
push 0x12
push dword [ebx + 0x4008]
push str.Transfer_Encoding:
call fcn.1002f418
add esp, 0xc
test eax, eax
je 0x100274a2
mov ecx, dword [esi + 0xf8]
mov eax, ecx
cdq
idiv dword [ebp - 0x14]
cmp eax, 2
jne 0x10027466
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
jmp 0x100273df
push str.chunked
push str.Transfer_Encoding:
push dword [ebx + 0x4008]
call fcn.1002bc51
add esp, 0xc
test eax, eax
je 0x100274f5
push str.CONNECT_responded_chunked_n
push esi
call fcn.100253dd
push edi
mov dword [ebx + 0x4018], 1
call fcn.10043bbf
add esp, 0xc
jmp 0x100274f5
push str.close
push str.Proxy_Connection:
push dword [ebx + 0x4008]
call fcn.1002bc51
add esp, 0xc
test eax, eax
je 0x100274c6
xor eax, eax
inc eax
mov dword [ebp - 8], eax
jmp 0x100274f5
lea eax, [esi + 0xf8]
push eax
lea eax, [ebp - 0x2c]
push eax
push str.HTTP_1._d__d
push dword [ebx + 0x4008]
call fcn.1004f31b
add esp, 0x10
cmp eax, 2
jne 0x100274f5
mov eax, dword [esi + 0xf8]
mov dword [esi + 0x4b44], eax
lea edx, [ebx + 0x4000]
mov dword [ebx + 0x400c], ebx
and dword [edx], 0
mov dword [ebx + 0x4008], ebx
jmp 0x10027226
mov dword [ebx + 0x400c], ebx
cmp dword [esi + 0xf8], 0x197
jne 0x10027600
cmp dword [esi + 0x48c4], 0
jne 0x10027600
mov ecx, dword [ebx + 0x4010]
mov edx, dword [ebx + 0x4014]
mov eax, ecx
or eax, edx
mov dword [ebx + 0x4004], 2
je 0x10027585
push edx
push ecx
push str.Ignore__I64d_bytes_of_response_body_n
push esi
call fcn.100253dd
add esp, 0x10
lea edx, [ebx + 0x4000]
mov eax, dword [ebx + 0x4010]
or eax, dword [ebx + 0x4014]
jne 0x10027226
mov dword [ebx + 0x401c], 2
jmp 0x10027226
cmp dword [ebx + 0x4018], 0
je 0x100275f4
push str.Ignore_chunked_response_body_n
push esi
call fcn.100253dd
pop ecx
pop ecx
xor ecx, ecx
inc ecx
mov dword [esi + 0x13c], ecx
mov eax, dword [ebx + 0x4008]
inc eax
cmp byte [eax], 0xa
jne 0x100275b6
mov dword [ebx + 0x4008], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx + 0x4008]
push ecx
inc eax
push eax
push edi
call fcn.10043bd2
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002755e
push str.chunk_reading_DONE_n
push esi
call fcn.100253dd
and dword [ebx + 0x4004], 0
pop ecx
pop ecx
mov dword [ebx + 0x401c], 2
jmp 0x1002755e
and dword [ebx + 0x4004], 0
jmp 0x1002755e
and dword [ebx + 0x4004], 0
jmp 0x10027564
mov dword [ebx + 0x4004], edx
mov dword [ebx + 0x401c], 2
jmp 0x10027662
cmp dword [esi + 0x190], 0
je 0x10027647
cmp dword [esi + 0x48b4], 0
je 0x10027647
push str.Proxy_CONNECT_connection_closed_n
push esi
mov dword [edi + 0x428], 1
call fcn.100253dd
jmp 0x10027659
push str.Proxy_CONNECT_aborted
push esi
mov dword [ebp + 8], 1
call fcn.10025321
pop ecx
pop ecx
and dword [ebx + 0x4004], 0
push edi
call fcn.1002e288
pop ecx
test eax, eax
jne 0x1002770a
cmp dword [ebp + 8], eax
jne 0x1002771e
cmp dword [esi + 0x4b44], 0xc8
je 0x100276aa
push edi
call fcn.1002bd95
pop ecx
test eax, eax
jne 0x1002783e
mov eax, dword [ebp - 8]
cmp dword [edi + 0x3c4], 0
push 1
pop ecx
cmovne eax, ecx
mov dword [ebp - 8], eax
jmp 0x100276b0
mov eax, dword [ebp - 8]
xor ecx, ecx
inc ecx
test eax, eax
je 0x100276bd
cmp dword [esi + 0x148], 0
jne 0x10027725
cmp dword [esi + 0x148], 0
je 0x10027742
cmp dword [ebx + 0x401c], 2
jne 0x100276d8
push ecx
push edi
call fcn.10027a1b
pop ecx
pop ecx
cmp dword [esi + 0x148], 0
je 0x10027742
jmp 0x10026eec
push dword [ebp - 0xc]
call dword [0x1009d004]
push dword [ebp + 8]
call fcn.1002b6ad
pop ecx
pop ecx
push 0x1b
jmp 0x1002783d
push dword [ebp + 8]
call fcn.1002b6ad
jmp 0x100276f8
push 0x2a
jmp 0x1002783d
push str.CONNECT_response_too_large_
push esi
call fcn.10025321
pop ecx
pop ecx
push 0x38
jmp 0x1002783d
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 + 0x1a8]
push edi
call fcn.10025a4d
mov eax, dword [ebp + 0xc]
pop ecx
or dword [edi + eax*4 + 0x1a8], 0xffffffff
pop ecx
cmp dword [esi + 0xf8], 0xc8
je 0x100277e7
mov eax, dword [ebp - 8]
test eax, eax
je 0x10027781
cmp dword [esi + 0x148], 0
je 0x10027781
xor eax, eax
inc eax
push str.Connect_me_again_please_n
push esi
mov dword [edi + 0x428], eax
call fcn.100253dd
push edi
call fcn.100279f5
add esp, 0xc
jmp 0x100277ba
push dword [esi + 0x148]
call dword [0x1009d004]
and dword [esi + 0x148], 0
push 2
push edi
call fcn.10025b33
mov eax, dword [ebp + 0xc]
push dword [edi + eax*4 + 0x1a8]
push edi
call fcn.10025a4d
mov eax, dword [ebp + 0xc]
add esp, 0x14
or dword [edi + eax*4 + 0x1a8], 0xffffffff
and dword [ebx + 0x401c], 0
cmp dword [edi + 0x428], 0
jne 0x10026ed0
push dword [esi + 0xf8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push esi
call fcn.10025321
add esp, 0xc
jmp 0x1002771e
mov dword [ebx + 0x401c], 2
push dword [edi + 0x484]
call dword [0x1009d004]
xor eax, eax
xor ebx, ebx
inc eax
mov dword [edi + 0x484], ebx
mov dword [esp], str.Proxy_replied_OK_to_CONNECT_request_n
push esi
mov dword [esi + 0x48b8], eax
call fcn.100253dd
pop ecx
mov dword [esi + 0x13c], ebx
pop ecx
mov dword [edi + 0x40c], ebx
jmp 0x10026ed0
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.10025321
pop ecx
pop ecx
push 0x1c
pop eax
pop edi
pop esi
pop ebx
leave
ret