Function at 0x1005c960
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
add ecx, 0x54
mov dword [ebp - 0x30], 0
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], eax
mov ebx, dword [eax + 0x4f0]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 0x134]
test ebx, ebx
je 0x1005d3c6
cmp dword [ebx + 0x1f0], 2
lea esi, [ebx + 0x1f0]
mov dword [ebp - 4], esi
jge 0x1005d3c6
mov byte [eax + 0x264], 0
add ecx, 0x1a0
lea eax, [edi + 0x128]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], eax
nop dword [eax]
cmp dword [esi], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
jne 0x1005cc1a
push dword [eax]
lea esi, [ebx + 0x1cc]
call dword [0x100dbe3c]
mov eax, dword [ebp - 0x10]
push 0x100000
push esi
mov dword [eax], 0
call fcn.100435c0
mov eax, dword [ebp - 8]
add esp, 0xc
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
mov cl, byte [eax + 0x26b]
cmp esi, dword [eax + 0x64]
je 0x1005ca2c
push 0x3a
push esi
call fcn.1008e500
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x100b9720
mov eax, 0x100bbd98
cmove eax, edx
push eax
mov eax, 0x100bbd9c
push esi
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.1005ecc0
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x10], esi
test esi, esi
je 0x1005d257
push 4
push str.Host
push dword [ebp - 8]
push edi
call fcn.100555b0
add esp, 0x10
test eax, eax
jne 0x1005ca93
push esi
push str.Host:__s_r_n
call fcn.1005ecc0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005d24d
push 1
push esi
push 0
push str.CONNECT
push dword [ebp - 8]
push edi
call fcn.100574a0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005cbeb
mov eax, dword [ebp - 8]
mov edx, 0x100bc9a0
mov esi, 0x100b9720
mov ecx, esi
cmp dword [eax + 0xb8], 1
mov eax, 0x100bc99c
cmovne edx, eax
mov eax, dword [edi + 0xcc4]
test eax, eax
cmovne ecx, eax
mov eax, esi
push ecx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
cmovne eax, ecx
push eax
push edx
push dword [ebp - 0x10]
lea eax, [ebx + 0x1cc]
push str.CONNECT__s_HTTP__s_r_n_s_s
push eax
call fcn.10043560
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005cbdd
push 0xa
push str.User_Agent
push dword [ebp - 8]
push edi
call fcn.100555b0
add esp, 0x10
test eax, eax
jne 0x1005cb4a
mov eax, dword [edi + 0x5a8]
test eax, eax
je 0x1005cb4a
push eax
lea eax, [ebx + 0x1cc]
push str.User_Agent:__s_r_n
push eax
call fcn.10043560
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005cbdd
push 0x10
push str.Proxy_Connection
push dword [ebp - 8]
push edi
call fcn.100555b0
add esp, 0x10
test eax, eax
jne 0x1005cb7d
push 0x1e
lea eax, [ebx + 0x1cc]
push str.Proxy_Connection:_Keep_Alive_r_n
push eax
call fcn.10043580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005cbdd
lea eax, [ebx + 0x1cc]
push eax
push 1
push edi
call fcn.10054e90
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005cbdd
push 2
lea eax, [ebx + 0x1cc]
push 0x100bb828
push eax
call fcn.10043580
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005cbdd
push dword [ebp + 0xc]
push eax
push eax
lea eax, [edi + 0xd58]
push eax
lea eax, [ebx + 0x1cc]
push edi
push eax
call fcn.10055330
mov esi, eax
mov dword [ebx + 0x1e0], 0
add esp, 0x18
test esi, esi
je 0x1005cbeb
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.1004c930
add esp, 8
push dword [ebp - 0x14]
call dword [0x100dbe3c]
push dword [ebp - 0x10]
call dword [0x100dbe3c]
add esp, 8
test esi, esi
jne 0x1005d263
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
mov dword [esi], 1
push 1
push 0
push edi
call fcn.1004e120
add esp, 0xc
test edx, edx
jl 0x1005d3db
jg 0x1005cc39
test eax, eax
je 0x1005d3db
push dword [ebp + 0xc]
mov esi, dword [ebp - 8]
push esi
call fcn.1004d3d0
mov ecx, dword [ebp - 0x14]
add esp, 8
test al, al
jne 0x1005cc58
cmp dword [ecx], 0
je 0x1005d3c6
cmp dword [ecx], 1
jne 0x1005cca8
mov eax, dword [ebx + 0x1dc]
test eax, eax
jne 0x1005d26c
mov eax, dword [edi + 0x8e0]
mov dword [edi + 0x130], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x4cc]
push edi
call fcn.10059060
add esp, 0xc
test eax, eax
jne 0x1005d3c8
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x1dc], eax
test eax, eax
jne 0x1005d26c
mov dword [ecx], eax
cmp dword [ebx + 0x1e4], 0
mov dword [ebp - 0x1c], 0
je 0x1005d150
nop dword [eax]
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp - 0x2c]
push edi
call fcn.1004c9f0
mov esi, eax
add esp, 0x14
cmp esi, 0x51
je 0x1005d3c6
push edi
call fcn.1005b4e0
add esp, 4
test eax, eax
jne 0x1005d3cf
test esi, esi
jne 0x1005d146
cmp dword [ebp - 0x18], esi
jle 0x1005d10a
cmp dword [ebx + 0x1e4], 2
jne 0x1005cd91
mov ecx, dword [ebx + 0x1e8]
mov eax, ecx
mov edx, dword [ebx + 0x1ec]
or eax, edx
je 0x1005cd5b
sub ecx, 1
mov dword [ebx + 0x1e8], ecx
sbb edx, esi
mov dword [ebx + 0x1ec], edx
js 0x1005cd43
jg 0x1005d0fb
test ecx, ecx
jne 0x1005d0fb
mov esi, dword [ebp - 4]
mov dword [ebx + 0x1e4], 0
mov dword [esi], 2
jmp 0x1005d153
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call fcn.1007b110
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1005d0fb
mov dword [ebx + 0x1e4], 0
jmp 0x1005d0f2
push 1
lea eax, [ebp + 0xb]
push eax
lea esi, [ebx + 0x1bc]
push esi
call fcn.10043580
add esp, 0xc
test eax, eax
jne 0x1005d2ba
cmp byte [ebp + 0xb], 0xa
jne 0x1005d0fb
inc dword [ebx + 0x1e0]
push esi
call fcn.10043600
mov esi, eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.100435f0
push eax
push esi
push 1
push edi
mov dword [ebp - 0x10], eax
call fcn.1004c890
add esp, 0x18
cmp byte [edi + 0x70c], 0
jne 0x1005ce21
push dword [ebp - 0x10]
xor ecx, ecx
cmp byte [edi + 0x6f4], cl
push esi
setne cl
xor eax, eax
cmp dword [ebx + 0x1e0], 1
sete al
lea eax, [eax*4 + 0xa]
or ecx, eax
push ecx
push edi
call fcn.1004c880
add esp, 0x10
test eax, eax
jne 0x1005d3c8
mov eax, dword [ebp - 0x10]
cdq
add dword [edi + 0xd50], eax
adc dword [edi + 0xd54], edx
mov al, byte [esi]
cmp al, 0xd
je 0x1005d030
cmp al, 0xa
je 0x1005d030
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.100511a0
add esp, 0xc
test eax, eax
je 0x1005ce67
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x191
je 0x1005ce8b
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.100511a0
add esp, 0xc
test eax, eax
je 0x1005cedf
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x197
jne 0x1005cedf
push esi
call fcn.100556c0
mov esi, eax
add esp, 4
test esi, esi
je 0x1005d257
cmp dword [ebp - 0x10], 0x197
push esi
sete cl
movzx ecx, cl
push ecx
push edi
call fcn.10057110
push esi
mov dword [ebp - 0x10], eax
call dword [0x100dbe3c]
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jne 0x1005d3c8
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043610
add esp, 4
jmp 0x1005d0fb
push 0xf
push str.Content_Length:
push esi
call fcn.100511a0
add esp, 0xc
test eax, eax
je 0x1005cf32
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d01c
lea eax, [ebx + 0x1e8]
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.10060420
add esp, 0x10
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043610
add esp, 4
jmp 0x1005d0fb
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.10055620
add esp, 0x14
test al, al
jne 0x1005d015
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.100511a0
add esp, 0xc
test eax, eax
je 0x1005cfbc
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d01c
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.10055620
add esp, 0x14
test al, al
je 0x1005d01c
push edi
mov byte [ebx + 0x1f4], 1
call fcn.1007b0e0
add esp, 4
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043610
add esp, 4
jmp 0x1005d0fb
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.10055620
add esp, 0x14
test al, al
jne 0x1005d015
lea eax, [edi + 0xf0]
push eax
lea eax, [ebp - 0x30]
push eax
push str.HTTP_1._d__d
push esi
call fcn.10042c50
add esp, 0x10
cmp eax, 2
jne 0x1005d01c
mov eax, dword [edi + 0xf0]
mov dword [edi + 0xd3c], eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043610
add esp, 4
jmp 0x1005d0fb
mov byte [ebx + 0x1f5], 1
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043610
add esp, 4
jmp 0x1005d0fb
cmp dword [edi + 0xf0], 0x197
jne 0x1005d0db
cmp byte [edi + 0xd01], 0
jne 0x1005d0db
mov eax, dword [ebx + 0x1e8]
lea edx, [ebx + 0x1e8]
or eax, dword [edx + 4]
mov ecx, 2
mov dword [ebx + 0x1e4], 2
mov dword [ebp - 0x10], edx
jne 0x1005d0d5
cmp byte [ebx + 0x1f4], al
je 0x1005d0c9
lea eax, [esi + 1]
mov byte [edi + 0x140], 1
cmp byte [eax], 0xa
cmove esi, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [esi + 1]
push eax
push edi
call fcn.1007b110
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1005d0be
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x1e4], 0
mov dword [eax], 2
jmp 0x1005d0d5
mov ecx, dword [ebx + 0x1e4]
mov edx, dword [ebp - 0x10]
jmp 0x1005d0d5
mov dword [ebx + 0x1e4], 0
xor ecx, ecx
test ecx, ecx
jne 0x1005d0fb
jmp 0x1005d0eb
mov dword [ebx + 0x1e4], 0
lea edx, [ebx + 0x1e8]
mov eax, dword [edx]
or eax, dword [edx + 4]
jne 0x1005d0fb
mov eax, dword [ebp - 4]
mov dword [eax], 2
cmp dword [ebx + 0x1e4], 0
jne 0x1005ccc0
jmp 0x1005d150
cmp dword [edi + 0x16c], 0
je 0x1005d131
cmp dword [edi + 0x998], 0
je 0x1005d131
cmp dword [edi + 0xcc4], 0
je 0x1005d131
mov eax, dword [ebp - 8]
mov byte [eax + 0x264], 1
jmp 0x1005d146
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x1c], 1
call fcn.1004c930
add esp, 8
mov dword [ebx + 0x1e4], 0
mov esi, dword [ebp - 4]
push edi
call fcn.1005b4e0
add esp, 4
test eax, eax
jne 0x1005d3cf
cmp dword [ebp - 0x1c], eax
jne 0x1005d2c8
mov eax, dword [edi + 0xd3c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d1a1
push edi
call fcn.10055790
add esp, 4
test eax, eax
jne 0x1005d3c8
mov eax, dword [ebp - 8]
cmp byte [eax + 0x266], 0
je 0x1005d1a1
mov byte [ebx + 0x1f5], 1
cmp byte [ebx + 0x1f5], 0
mov eax, dword [ebp - 0xc]
je 0x1005d1bb
cmp dword [eax], 0
jne 0x1005d2d4
mov dword [ebp - 0x10], eax
jmp 0x1005d236
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ecx], 0
je 0x1005d236
cmp dword [esi], 2
jne 0x1005d236
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 0x2a8]
test dword [eax + 0x4c], 0x4000
je 0x1005d1ef
push dword [eax]
push str._s_cannot_be_done_over_CONNECT
push edi
call fcn.1004c930
add esp, 0xc
jmp 0x1005d233
mov esi, dword [esi + 0x4f0]
lea eax, [esi + 0x1bc]
push eax
call fcn.10043610
add esp, 4
mov dword [esi + 0x1f0], 0
mov dword [esi + 0x1e4], 1
mov dword [esi + 0x1e8], 0
mov dword [esi + 0x1ec], 0
mov byte [esi + 0x1f5], 0
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
cmp dword [esi], 0
je 0x1005d2f1
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
jmp 0x1005c9d0
push esi
call dword [0x100dbe3c]
add esp, 4
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [edi + 0x130]
push dword [esi + 0x2c4]
push edi
call fcn.1004cdf0
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x1005d2a2
push dword [ebp + 0xc]
push dword [edi + 0x130]
push 2
push edi
call fcn.1004c890
add esp, 0x10
mov ecx, eax
mov eax, dword [ebp + 0xc]
sub dword [ebx + 0x1dc], eax
add dword [edi + 0x130], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large
push edi
call fcn.1004c930
add esp, 8
pop edi
pop esi
mov eax, 0x38
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 8]
push dword [eax]
push esi
push edi
call fcn.1004d350
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [eax], 0xffffffff
jmp 0x1005d2f4
mov esi, dword [ebp - 8]
mov eax, dword [edi + 0xd3c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d381
cmp byte [ebx + 0x1f5], 0
mov eax, dword [ebp - 0xc]
je 0x1005d327
cmp dword [eax], 0
je 0x1005d327
push edi
mov byte [esi + 0x264], 1
call fcn.1005d430
add esp, 4
jmp 0x1005d343
push dword [eax]
call dword [0x100dbe3c]
mov eax, dword [ebp - 0xc]
push 2
push esi
mov dword [eax], 0
call fcn.1004d480
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0
cmp byte [esi + 0x264], 0
jne 0x1005d3c6
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043590
push dword [edi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.1004c930
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov dword [eax], 2
push dword [edi + 0xcc4]
call dword [0x100dbe3c]
lea eax, [ebx + 0x1bc]
mov dword [edi + 0xcc4], 0
mov word [edi + 0x99c], 1
mov byte [edi + 0x140], 0
push eax
mov byte [esi + 0x271], 0
call fcn.10043590
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push edi
call fcn.1004c930
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret