Function at 0x1001cb60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], 0
mov ebx, dword [edi + 0xc]
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x148]
mov esi, dword [ebx + 0x43c]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x134]
mov dword [esp + 0x1c], eax
call fcn.1001c8f0
test al, al
jne 0x1001d505
mov byte [ebx + 0x25c], al
nop dword [eax]
cmp dword [esi + 0x1f0], 0
jne 0x1001cdad
push dword [edi + 0x128]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [0x100939a8]
add esp, 4
mov dword [edi + 0x128], 0
mov edx, 0x100000
lea ecx, [esi + 0x1cc]
call fcn.10005ba0
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
mov edx, ebx
push eax
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 8]
call fcn.1001caa0
add esp, 0x10
test eax, eax
jne 0x1001d507
push 1
push dword [esp + 0x18]
mov edx, ebx
mov ecx, edi
push eax
push str.CONNECT
call fcn.10022e10
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1001cd7d
mov eax, dword [esp + 0x10]
mov edx, 0x1008c550
mov ecx, 0x100899b5
cmp dword [eax + 0xb4], 1
mov eax, 0x1008c554
cmovne edx, eax
mov eax, dword [edi + 0xc6c]
test eax, eax
cmovne ecx, eax
mov eax, 0x100899b5
push ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
cmovne eax, ecx
push eax
push edx
push dword [esp + 0x20]
lea eax, [esi + 0x1cc]
push str.CONNECT__s_HTTP__s_r_n_s_s
push eax
call fcn.10005d40
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1001cd6f
mov edx, dword [esp + 0x10]
mov ecx, edi
push 0xa
push str.User_Agent
call fcn.10022500
add esp, 8
test eax, eax
jne 0x1001ccdd
mov eax, dword [edi + 0x590]
test eax, eax
je 0x1001ccdd
push eax
lea eax, [esi + 0x1cc]
push str.User_Agent:__s_r_n
push eax
call fcn.10005d40
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1001cd6f
mov edx, dword [esp + 0x10]
mov ecx, edi
push 0x10
push str.Proxy_Connection
call fcn.10022500
add esp, 8
test eax, eax
jne 0x1001cd11
push 0x1e
mov edx, str.Proxy_Connection:_Keep_Alive_r_n
lea ecx, [esi + 0x1cc]
call fcn.10005ce0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001cd6f
lea eax, [esi + 0x1cc]
mov dl, 1
push eax
mov ecx, edi
call fcn.10023a80
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001cd6f
push 2
mov edx, 0x10089a48
lea ecx, [esi + 0x1cc]
call fcn.10005ce0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001cd6f
push ecx
push eax
push eax
lea eax, [edi + 0xcd8]
mov edx, edi
push eax
lea ecx, [esi + 0x1cc]
call fcn.10023370
mov ebx, eax
mov dword [esi + 0x1e0], 0
add esp, 0x10
test ebx, ebx
je 0x1001cd7d
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.1000a7d0
add esp, 8
push dword [esp + 0x18]
call dword [0x100939a8]
add esp, 4
push dword [esp + 0x14]
call dword [0x100939a8]
add esp, 4
test ebx, ebx
jne 0x1001d3e1
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x1f0], 1
push 1
xor edx, edx
mov ecx, edi
call fcn.1000b140
add esp, 4
test edx, edx
jl 0x1001d51a
jg 0x1001cdcd
test eax, eax
je 0x1001d51a
mov ecx, ebx
call fcn.1000c930
mov ecx, dword [esp + 0x1c]
test al, al
jne 0x1001cde9
cmp dword [ecx + 0x1a0], 0
je 0x1001d505
cmp dword [ecx + 0x1a0], 1
jne 0x1001ce45
mov eax, dword [esi + 0x1dc]
test eax, eax
jne 0x1001d3ea
mov eax, dword [edi + 0x898]
mov ecx, edi
mov dword [edi + 0x130], eax
lea eax, [esp + 0x24]
mov edx, dword [edi + 0x4c4]
push eax
call fcn.1001d6d0
add esp, 4
test eax, eax
jne 0x1001d507
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x1dc], eax
test eax, eax
jne 0x1001d3ea
mov dword [ecx + 0x1a0], eax
cmp dword [esi + 0x1e4], 0
mov dword [esp + 0x14], 0
je 0x1001cefe
nop word [eax + eax]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x13]
mov ecx, edi
push 1
push eax
call fcn.1000ae10
mov ebx, eax
add esp, 0xc
cmp ebx, 0x51
je 0x1001d505
mov ecx, edi
call fcn.1001c6c0
test eax, eax
jne 0x1001d50e
test ebx, ebx
jne 0x1001cef0
cmp dword [esp + 0x20], ebx
jle 0x1001d34c
cmp dword [esi + 0x1e4], 2
jne 0x1001cff6
mov ecx, dword [esi + 0x1e8]
mov eax, ecx
mov edx, dword [esi + 0x1ec]
or eax, edx
je 0x1001cfbc
sub ecx, 1
mov dword [esi + 0x1e8], ecx
sbb edx, ebx
mov dword [esi + 0x1ec], edx
js 0x1001cee6
jg 0x1001d33a
test ecx, ecx
jne 0x1001d33a
mov dword [esi + 0x1f0], 2
mov dword [esi + 0x1e4], 0
mov ebx, dword [esp + 0x10]
mov ecx, edi
call fcn.1001c6c0
test eax, eax
jne 0x1001d50e
cmp dword [esp + 0x14], eax
jne 0x1001d451
mov eax, dword [edi + 0xcbc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1001cf45
mov ecx, edi
call fcn.10022a40
test eax, eax
jne 0x1001d507
cmp byte [ebx + 0x25e], al
je 0x1001cf45
mov byte [esi + 0x1f5], 1
cmp byte [esi + 0x1f5], 0
je 0x1001d3aa
cmp dword [edi + 0x128], 0
je 0x1001d3ce
push dword [ebx + 0x148]
mov edx, ebx
mov ecx, edi
call fcn.1000c750
add esp, 4
mov dword [ebx + 0x148], 0xffffffff
mov eax, dword [edi + 0xcbc]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1001d4c0
cmp byte [esi + 0x1f5], 0
je 0x1001d45d
cmp dword [edi + 0x128], 0
je 0x1001d45d
mov ecx, edi
mov byte [ebx + 0x25c], 1
call fcn.1001ca30
jmp 0x1001d482
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
push 1
lea edx, [esp + 0x1b]
call fcn.1002c600
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1001d33a
mov dword [esi + 0x1e4], 0
jmp 0x1001d330
push 1
lea edx, [esp + 0x13]
lea ecx, [esi + 0x1bc]
call fcn.10005ce0
add esp, 4
test eax, eax
jne 0x1001d443
cmp byte [esp + 0xf], 0xa
jne 0x1001d33a
inc dword [esi + 0x1e0]
lea ecx, [esi + 0x1bc]
call fcn.10005d60
lea ecx, [esi + 0x1bc]
mov ebx, eax
call fcn.10005d80
push eax
push ebx
mov edx, 1
mov dword [esp + 0x20], eax
mov ecx, edi
call fcn.1000ae80
add esp, 8
cmp byte [edi + 0x6c5], 0
jne 0x1001d090
push dword [esp + 0x18]
xor edx, edx
mov ecx, edi
cmp byte [edi + 0x6ad], dl
push ebx
setne dl
xor eax, eax
cmp dword [esi + 0x1e0], 1
sete al
lea eax, [eax*4 + 0xa]
or edx, eax
call fcn.1000adb0
add esp, 8
test eax, eax
jne 0x1001d507
mov eax, dword [esp + 0x18]
cdq
add dword [edi + 0xcd0], eax
adc dword [edi + 0xcd4], edx
mov al, byte [ebx]
cmp al, 0xd
je 0x1001d290
cmp al, 0xa
je 0x1001d290
push 0x11
mov edx, str.WWW_Authenticate:
mov ecx, ebx
call fcn.10015c30
add esp, 4
test eax, eax
je 0x1001d0d9
mov eax, dword [edi + 0xf0]
mov dword [esp + 0x18], eax
cmp eax, 0x191
je 0x1001d0ff
push 0x13
mov edx, str.Proxy_authenticate:
mov ecx, ebx
call fcn.10015c30
add esp, 4
test eax, eax
je 0x1001d150
mov eax, dword [edi + 0xf0]
mov dword [esp + 0x18], eax
cmp eax, 0x197
jne 0x1001d150
mov ecx, ebx
call fcn.10022570
mov ebx, eax
test ebx, ebx
je 0x1001d437
cmp dword [esp + 0x18], 0x197
mov ecx, edi
push ebx
sete dl
call fcn.10022f60
add esp, 4
mov dword [esp + 0x18], eax
push ebx
call dword [0x100939a8]
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x1001d507
lea ecx, [esi + 0x1bc]
call fcn.10005cc0
jmp 0x1001d33a
push 0xf
mov edx, str.Content_Length:
mov ecx, ebx
call fcn.10015c30
add esp, 4
test eax, eax
je 0x1001d19f
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1001d280
lea eax, [esi + 0x1e8]
xor edx, edx
push eax
push 0xa
lea ecx, [ebx + 0xf]
call fcn.10027a10
add esp, 8
lea ecx, [esi + 0x1bc]
call fcn.10005cc0
jmp 0x1001d33a
push 5
push str.close
push 0xb
mov edx, str.Connection:
mov ecx, ebx
call fcn.100235f0
add esp, 0xc
test al, al
jne 0x1001d279
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, ebx
call fcn.10015c30
add esp, 4
test eax, eax
je 0x1001d222
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1001d280
push 7
push str.chunked
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, ebx
call fcn.100235f0
add esp, 0xc
test al, al
je 0x1001d280
mov ecx, edi
mov byte [esi + 0x1f4], 1
call fcn.1002c5e0
lea ecx, [esi + 0x1bc]
call fcn.10005cc0
jmp 0x1001d33a
push 5
push str.close
push 0x11
mov edx, str.Proxy_Connection:
mov ecx, ebx
call fcn.100235f0
add esp, 0xc
test al, al
jne 0x1001d279
lea eax, [edi + 0xf0]
push eax
lea eax, [esp + 0x30]
push eax
push str.HTTP_1._d__d
push ebx
call fcn.1000c9e0
add esp, 0x10
cmp eax, 2
jne 0x1001d280
mov eax, dword [edi + 0xf0]
lea ecx, [esi + 0x1bc]
mov dword [edi + 0xcbc], eax
call fcn.10005cc0
jmp 0x1001d33a
mov byte [esi + 0x1f5], 1
lea ecx, [esi + 0x1bc]
call fcn.10005cc0
jmp 0x1001d33a
cmp dword [edi + 0xf0], 0x197
jne 0x1001d318
cmp byte [edi + 0xca9], 0
jne 0x1001d318
mov eax, dword [esi + 0x1e8]
mov ecx, 2
or eax, dword [esi + 0x1ec]
mov dword [esi + 0x1e4], 2
jne 0x1001d30a
cmp byte [esi + 0x1f4], al
je 0x1001d302
lea eax, [ebx + 1]
mov byte [edi + 0x140], 1
cmp byte [eax], 0xa
mov ecx, edi
cmove ebx, eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x24]
push eax
push 1
lea edx, [ebx + 1]
call fcn.1002c600
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1001d310
mov dword [esi + 0x1f0], 2
xor ecx, ecx
mov dword [esi + 0x1e4], ecx
test ecx, ecx
jne 0x1001d33a
jmp 0x1001d322
mov ecx, dword [esi + 0x1e4]
jmp 0x1001d30a
mov dword [esi + 0x1e4], 0
mov eax, dword [esi + 0x1e8]
or eax, dword [esi + 0x1ec]
jne 0x1001d33a
mov dword [esi + 0x1f0], 2
cmp dword [esi + 0x1e4], 0
jne 0x1001ce60
jmp 0x1001cefa
cmp dword [edi + 0x16c], 0
je 0x1001d381
cmp dword [edi + 0x950], 0
je 0x1001d381
cmp dword [edi + 0xc6c], 0
je 0x1001d381
mov ebx, dword [esp + 0x10]
mov byte [ebx + 0x25c], 1
mov dword [esi + 0x1e4], 0
jmp 0x1001cefe
push str.Proxy_CONNECT_aborted
push edi
mov dword [esp + 0x1c], 1
call fcn.1000a7d0
mov ebx, dword [esp + 0x18]
add esp, 8
mov dword [esi + 0x1e4], 0
jmp 0x1001cefe
mov eax, dword [edi + 0x128]
test eax, eax
je 0x1001cf7b
cmp dword [esi + 0x1f0], 2
jne 0x1001cbb0
mov dl, 1
mov ecx, edi
call fcn.1001c950
mov eax, dword [edi + 0x128]
test eax, eax
jne 0x1001cbb0
jmp 0x1001cf7b
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x2bc]
lea ecx, [esp + 0x28]
push ecx
push eax
push dword [edi + 0x130]
mov ecx, edi
call fcn.1000a890
mov ebx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x1001d424
push ebx
push dword [edi + 0x130]
mov edx, 2
mov ecx, edi
call fcn.1000ae80
add esp, 8
sub dword [esi + 0x1dc], ebx
add dword [edi + 0x130], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large
push edi
call fcn.1000a7d0
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x128]
call dword [0x100939a8]
add esp, 4
mov dword [edi + 0x128], 0
mov edx, 2
mov ecx, ebx
call fcn.1000c8e0
mov dword [esi + 0x1f0], 0
cmp byte [ebx + 0x25c], 0
jne 0x1001d505
lea ecx, [esi + 0x1bc]
call fcn.10005bc0
push dword [edi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.1000a7d0
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1f0], 2
push dword [edi + 0xc6c]
call dword [0x100939a8]
add esp, 4
mov dword [edi + 0xc6c], 0
mov word [edi + 0x954], 1
lea ecx, [esi + 0x1bc]
mov byte [edi + 0x140], 0
mov byte [ebx + 0x269], 0
call fcn.10005bc0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.1000a7d0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret