Function at 0x100336f0
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 + 0x1a8]
push ebp
push esi
mov esi, dword [ebx + 0x580]
xor ebp, ebp
push edi
mov edi, dword [ebx]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ecx
cmp esi, ebp
je 0x100341d5
cmp dword [esi + 0x4018], 2
je 0x100341d5
and dword [ebx + 0x294], 0xff7fffff
jmp 0x10033740
cmp dword [esi + 0x4018], ebp
jne 0x100339bf
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.100148c0
mov ecx, dword [edi + 0x148]
push ecx
call dword [0x1007b004]
add esp, 0x14
mov dword [edi + 0x148], ebp
call fcn.1002c180
mov dword [esp + 0x10], eax
cmp eax, ebp
je 0x1003400d
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
push str._s:_d
call fcn.100357a0
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
je 0x10034000
mov ecx, dword [esp + 0x34]
push 1
push ebx
push str.CONNECT
push ecx
call fcn.1002bcc0
push ebx
mov ebp, eax
call dword [0x1007b004]
add esp, 0x14
test ebp, ebp
jne 0x10033996
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x34]
cmp dword [ebp + 0xf0], 1
mov eax, 0x1007728b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x1006debc
je 0x100337fd
mov dword [esp + 0x20], 0x1006dec0
mov eax, dword [ebp + 0x294]
mov ebx, dword [esp + 0x3c]
shr eax, 9
and eax, 1
cmp ebx, dword [ebp + 0x9c]
je 0x10033826
push 0x3a
push ebx
call fcn.10050540
add esp, 8
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x10033836
mov ecx, 0x10069784
mov eax, 0x10069780
jmp 0x1003383d
mov ecx, 0x1007728b
mov eax, ecx
mov edx, dword [esp + 0x40]
push edx
push ecx
push ebx
push eax
push str._s_s_s:_d
call fcn.100357a0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1003401a
push str.Host
push ebp
call fcn.1002b5c0
add esp, 8
test eax, eax
jne 0x10033888
push ebx
push str.Host:__s_r_n
call fcn.100357a0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x10034034
push str.Proxy_Connection
push ebp
call fcn.1002b5c0
add esp, 8
test eax, eax
jne 0x100338a2
mov dword [esp + 0x18], str.Proxy_Connection:_Keep_Alive_r_n
push str.User_Agent
push ebp
call fcn.1002b5c0
add esp, 8
test eax, eax
jne 0x100338c6
cmp dword [edi + 0x9c4], eax
je 0x100338c6
mov eax, dword [ebp + 0x2e8]
mov dword [esp + 0x1c], eax
mov ebp, dword [ebp + 0x2e4]
mov ecx, ebp
test ebp, ebp
jne 0x100338d7
mov ecx, 0x1007728b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100338e4
mov eax, 0x1007728b
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.1002cd90
add esp, 0x20
cmp dword [esp + 0x14], 0
mov ebp, eax
je 0x1003391f
mov edx, dword [esp + 0x14]
push edx
call dword [0x1007b004]
add esp, 4
push ebx
call dword [0x1007b004]
add esp, 4
test ebp, ebp
jne 0x1003397c
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push eax
push 1
push ebx
call fcn.1002d030
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x1003397c
lea ecx, [esp + 0x10]
push 0x10069f9c
push ecx
call fcn.1002cd90
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1003397c
mov edx, dword [esp + 0x38]
push edx
push eax
lea eax, [edi + 0xf98]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.1002c1c0
add esp, 0x14
mov ebp, eax
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x10033996
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.100149a0
add esp, 8
lea edx, [esp + 0x10]
push edx
call fcn.1002c190
add esp, 4
test ebp, ebp
jne 0x10034055
mov ebx, dword [esp + 0x34]
mov dword [esi + 0x4018], 1
mov dword [esi + 0x4000], ebp
push 1
push ebp
push edi
call fcn.1001a010
add esp, 0xc
cmp edx, ebp
jl 0x1003405f
jg 0x100339dd
cmp eax, ebp
jbe 0x1003405f
mov eax, dword [esp + 0x38]
push eax
push ebx
call fcn.1001abe0
add esp, 8
test eax, eax
je 0x100341d5
mov dword [esp + 0x20], ebp
cmp dword [esi + 0x4004], ebp
je 0x10033acc
lea ebx, [esi + 0x4000]
lea esp, [esp]
mov eax, dword [esi + 0x400c]
cmp eax, ebx
jae 0x1003407a
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.10014700
mov ebp, eax
add esp, 0x14
cmp ebp, 0x51
je 0x100341d5
mov ecx, dword [esp + 0x34]
push ecx
call fcn.10036810
add esp, 4
test eax, eax
jne 0x10034095
test ebp, ebp
jne 0x10033abc
cmp dword [esp + 0x24], ebp
jle 0x10033fb2
cmp dword [esi + 0x4004], 1
jle 0x10033be1
mov eax, dword [esi + 0x4010]
mov ecx, dword [esi + 0x4014]
mov edx, eax
or edx, ecx
mov dword [esi + 0x400c], esi
je 0x10033b94
sub eax, 1
sbb ecx, ebp
mov dword [esi + 0x4010], eax
mov dword [esi + 0x4014], ecx
test ecx, ecx
jl 0x10033ab2
jg 0x10033fa0
test eax, eax
ja 0x10033fa0
mov dword [esi + 0x4018], 2
mov dword [esi + 0x4004], 0
mov ebx, dword [esp + 0x34]
xor ebp, ebp
push ebx
call fcn.10036810
add esp, 4
test eax, eax
jne 0x10034095
cmp dword [esp + 0x20], ebp
jne 0x10034088
mov ecx, dword [edi + 0xf7c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
je 0x10033b24
push ebx
call fcn.1002cb60
add esp, 4
cmp eax, ebp
jne 0x100341d7
test byte [ebx + 0x294], 1
je 0x10033b24
or dword [esi + 0x401c], 2
test byte [esi + 0x401c], 2
je 0x10033b39
cmp dword [edi + 0x148], ebp
jne 0x100340a2
cmp dword [edi + 0x148], ebp
je 0x100340c6
cmp dword [esi + 0x4018], 2
jne 0x10033b83
mov eax, dword [ebx + 0x580]
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 + 0x148], ebp
jne 0x10033740
jmp 0x100340c6
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push ecx
mov dword [esp + 0x2c], 0
call fcn.1003e7d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10033fa0
push str.chunk_reading_DONE_n
push edi
call fcn.100148c0
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x4018], 2
jmp 0x10033fa0
inc dword [ebx]
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
mov ecx, dword [ebx]
je 0x10033bfc
inc eax
mov dword [esi + 0x400c], eax
jmp 0x10033fa0
test dword [edi + 0xa8c], 0x4000000
je 0x10033c1b
mov edx, dword [esi + 0x4008]
push ecx
push edx
push 1
push edi
call fcn.10014830
add esp, 0x10
test dword [edi + 0xa90], 0x80000
jne 0x10033c5d
test dword [edi + 0xa8c], 0x200000
mov eax, 2
je 0x10033c3d
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.10014e80
add esp, 0x10
test eax, eax
jne 0x100341d7
mov eax, dword [ebx]
cdq
add dword [edi + 0xf90], eax
adc dword [edi + 0xf94], edx
mov eax, dword [ebx]
cdq
add dword [edi + 0xb0], eax
adc dword [edi + 0xb4], edx
mov eax, dword [esi + 0x4008]
mov cl, byte [eax]
cmp cl, 0xd
je 0x10033ec4
cmp cl, 0xa
je 0x10033ec4
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x4008]
push 0x11
push edx
push str.WWW_Authenticate:
call fcn.10013f10
add esp, 0xc
test eax, eax
je 0x10033cc2
mov eax, dword [edi + 0x108]
cmp eax, 0x191
je 0x10033ce9
mov eax, dword [esi + 0x4008]
push 0x13
push eax
push str.Proxy_authenticate:
call fcn.10013f10
add esp, 0xc
test eax, eax
je 0x10033d36
mov eax, dword [edi + 0x108]
cmp eax, 0x197
jne 0x10033d36
mov ecx, dword [esi + 0x4008]
xor ebx, ebx
cmp eax, 0x197
push ecx
sete bl
call fcn.1002b640
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1003400d
mov edx, dword [esp + 0x34]
push ebp
push ebx
push edx
call fcn.1002bdd0
push ebp
mov ebx, eax
call dword [0x1007b004]
add esp, 0x10
test ebx, ebx
je 0x10033ea7
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.10013f10
add esp, 0xc
test eax, eax
je 0x10033da2
mov ecx, dword [edi + 0x108]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x10033d80
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push edi
call fcn.100148c0
add esp, 0xc
jmp 0x10033ea7
mov edx, dword [esi + 0x4008]
lea ecx, [esi + 0x4010]
push ecx
push 0xa
add edx, 0xf
push 0
push edx
call fcn.1003e280
add esp, 0x10
jmp 0x10033ea7
mov eax, dword [esi + 0x4008]
push str.close
push str.Connection:
push eax
call fcn.1002c4f0
add esp, 0xc
test eax, eax
je 0x10033dcb
or dword [esi + 0x401c], 2
jmp 0x10033ea7
mov ecx, dword [esi + 0x4008]
push 0x12
push ecx
push str.Transfer_Encoding:
call fcn.10013f10
add esp, 0xc
test eax, eax
je 0x10033e53
mov ecx, dword [edi + 0x108]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x10033e15
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push edi
call fcn.100148c0
add esp, 0xc
jmp 0x10033ea7
mov ecx, dword [esi + 0x4008]
push str.chunked
push str.Transfer_Encoding:
push ecx
call fcn.1002c4f0
add esp, 0xc
test eax, eax
je 0x10033ea7
push str.CONNECT_responded_chunked_n
push edi
call fcn.100148c0
mov edx, dword [esp + 0x3c]
or dword [esi + 0x401c], 1
push edx
call fcn.1003e7c0
add esp, 0xc
jmp 0x10033ea7
mov eax, dword [esi + 0x4008]
push str.close
push str.Proxy_Connection:
push eax
call fcn.1002c4f0
add esp, 0xc
test eax, eax
je 0x10033e79
or dword [esi + 0x401c], 2
jmp 0x10033ea7
mov edx, dword [esi + 0x4008]
lea ebp, [edi + 0x108]
push ebp
lea ecx, [esp + 0x30]
push ecx
push str.HTTP_1._d__d
push edx
call fcn.10051274
add esp, 0x10
cmp eax, 2
jne 0x10033ea7
mov eax, dword [ebp]
mov dword [edi + 0xf7c], eax
lea ebx, [esi + 0x4000]
mov dword [ebx], 0
mov dword [esi + 0x400c], esi
mov dword [esi + 0x4008], esi
jmp 0x10033fa0
mov dword [esi + 0x400c], esi
cmp dword [edi + 0x108], 0x197
jne 0x10033f7d
test byte [edi + 0xf4c], 0x20
jne 0x10033f7d
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 0x10033f16
push ecx
push eax
push str.Ignore__I64d_bytes_of_response_body_n
push edi
call fcn.100148c0
add esp, 0x10
jmp 0x10033f8c
test byte [esi + 0x401c], 1
je 0x10033f82
push str.Ignore_chunked_response_body_n
push edi
call fcn.100148c0
or dword [edi + 0x590], 8
mov eax, dword [esi + 0x4008]
inc eax
add esp, 8
cmp byte [eax], 0xa
jne 0x10033f46
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.1003e7d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10033f8c
push str.chunk_reading_DONE_n
push edi
call fcn.100148c0
add esp, 8
mov dword [esi + 0x4018], ebp
jmp 0x10033f82
mov ebp, 2
mov dword [esi + 0x4004], 0
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x10033fa0
mov dword [esi + 0x4018], ebp
cmp dword [esi + 0x4004], 0
jne 0x10033a10
jmp 0x10033ac6
cmp dword [edi + 0x5c0], 0
je 0x10033fe5
cmp dword [edi + 0xcf0], 0
je 0x10033fe5
mov eax, dword [esp + 0x34]
or dword [eax + 0x294], 0x800000
push str.Proxy_CONNECT_connection_closed_n
push edi
call fcn.100148c0
add esp, 8
jmp 0x10033abc
push str.Proxy_CONNECT_aborted
push edi
mov dword [esp + 0x28], 1
call fcn.100149a0
add esp, 8
jmp 0x10033abc
lea edx, [esp + 0x10]
push edx
call fcn.1002c190
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.1002c190
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x20
ret
push ebx
call dword [0x1007b004]
lea ecx, [esp + 0x14]
push ecx
call fcn.1002c190
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.100149a0
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.100149a0
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 + 0x1a8]
push eax
push ebx
call fcn.1001aa00
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [ebx + ecx*4 + 0x1a8], 0xffffffff
mov ecx, dword [edi + 0xf7c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x1003418b
test byte [esi + 0x401c], 2
je 0x10034118
cmp dword [edi + 0x148], ebp
je 0x10034118
or dword [ebx + 0x294], 0x800000
push str.Connect_me_again_please_n
push edi
call fcn.100148c0
add esp, 8
mov eax, ebx
call fcn.100336c0
jmp 0x10034157
mov ecx, dword [edi + 0x148]
push ecx
call dword [0x1007b004]
push 2
push ebx
mov dword [edi + 0x148], ebp
call fcn.1001ab80
mov edx, dword [esp + 0x44]
mov eax, dword [ebx + edx*4 + 0x1a8]
push eax
push ebx
call fcn.1001aa00
mov ecx, dword [esp + 0x4c]
add esp, 0x14
mov dword [ebx + ecx*4 + 0x1a8], 0xffffffff
mov dword [esi + 0x4018], ebp
test dword [ebx + 0x294], 0x800000
jne 0x100341d5
mov edx, dword [edi + 0x108]
push edx
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.100149a0
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 + 0x2e4]
push eax
call dword [0x1007b004]
mov dword [ebx + 0x2e4], ebp
mov ecx, dword [edi + 0xf7c]
or dword [edi + 0xcf4], 1
push ecx
push str.Proxy_replied__d_to_CONNECT_request_n
push edi
call fcn.100148c0
and dword [edi + 0x590], 0xfffffff7
add esp, 0x10
and dword [ebx + 0x294], 0xfffeffff
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret