Function at 0x1005cbc0
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 0x1005d626
cmp dword [ebx + 0x1f0], 2
lea esi, [ebx + 0x1f0]
mov dword [ebp - 4], esi
jge 0x1005d626
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 0x1005ce7a
push dword [eax]
lea esi, [ebx + 0x1cc]
call dword [0x100dcd48]
mov eax, dword [ebp - 0x10]
push 0x100000
push esi
mov dword [eax], 0
call fcn.10043810
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 0x1005cc8c
push 0x3a
push esi
call fcn.1008e8d0
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x100ba720
mov eax, 0x100bcdb8
cmove eax, edx
push eax
mov eax, 0x100bcdbc
push esi
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.1005ef20
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x10], esi
test esi, esi
je 0x1005d4b7
push 4
push str.Host
push dword [ebp - 8]
push edi
call fcn.10055810
add esp, 0x10
test eax, eax
jne 0x1005ccf3
push esi
push str.Host:__s_r_n
call fcn.1005ef20
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005d4ad
push 1
push esi
push 0
push str.CONNECT
push dword [ebp - 8]
push edi
call fcn.10057700
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005ce4b
mov eax, dword [ebp - 8]
mov edx, 0x100bd9c0
mov esi, 0x100ba720
mov ecx, esi
cmp dword [eax + 0xb8], 1
mov eax, 0x100bd9bc
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.100437b0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005ce3d
push 0xa
push str.User_Agent
push dword [ebp - 8]
push edi
call fcn.10055810
add esp, 0x10
test eax, eax
jne 0x1005cdaa
mov eax, dword [edi + 0x5a8]
test eax, eax
je 0x1005cdaa
push eax
lea eax, [ebx + 0x1cc]
push str.User_Agent:__s_r_n
push eax
call fcn.100437b0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ce3d
push 0x10
push str.Proxy_Connection
push dword [ebp - 8]
push edi
call fcn.10055810
add esp, 0x10
test eax, eax
jne 0x1005cddd
push 0x1e
lea eax, [ebx + 0x1cc]
push str.Proxy_Connection:_Keep_Alive_r_n
push eax
call fcn.100437d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ce3d
lea eax, [ebx + 0x1cc]
push eax
push 1
push edi
call fcn.100550f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ce3d
push 2
lea eax, [ebx + 0x1cc]
push 0x100bc848
push eax
call fcn.100437d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ce3d
push dword [ebp + 0xc]
push eax
push eax
lea eax, [edi + 0xd58]
push eax
lea eax, [ebx + 0x1cc]
push edi
push eax
call fcn.10055590
mov esi, eax
mov dword [ebx + 0x1e0], 0
add esp, 0x18
test esi, esi
je 0x1005ce4b
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.1004cb90
add esp, 8
push dword [ebp - 0x14]
call dword [0x100dcd48]
push dword [ebp - 0x10]
call dword [0x100dcd48]
add esp, 8
test esi, esi
jne 0x1005d4c3
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.1004e380
add esp, 0xc
test edx, edx
jl 0x1005d63b
jg 0x1005ce99
test eax, eax
je 0x1005d63b
push dword [ebp + 0xc]
mov esi, dword [ebp - 8]
push esi
call fcn.1004d630
mov ecx, dword [ebp - 0x14]
add esp, 8
test al, al
jne 0x1005ceb8
cmp dword [ecx], 0
je 0x1005d626
cmp dword [ecx], 1
jne 0x1005cf08
mov eax, dword [ebx + 0x1dc]
test eax, eax
jne 0x1005d4cc
mov eax, dword [edi + 0x8e0]
mov dword [edi + 0x130], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x4cc]
push edi
call fcn.100592c0
add esp, 0xc
test eax, eax
jne 0x1005d628
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x1dc], eax
test eax, eax
jne 0x1005d4cc
mov dword [ecx], eax
cmp dword [ebx + 0x1e4], 0
mov dword [ebp - 0x1c], 0
je 0x1005d3b0
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.1004cc50
mov esi, eax
add esp, 0x14
cmp esi, 0x51
je 0x1005d626
push edi
call fcn.1005b740
add esp, 4
test eax, eax
jne 0x1005d62f
test esi, esi
jne 0x1005d3a6
cmp dword [ebp - 0x18], esi
jle 0x1005d36a
cmp dword [ebx + 0x1e4], 2
jne 0x1005cff1
mov ecx, dword [ebx + 0x1e8]
mov eax, ecx
mov edx, dword [ebx + 0x1ec]
or eax, edx
je 0x1005cfbb
sub ecx, 1
mov dword [ebx + 0x1e8], ecx
sbb edx, esi
mov dword [ebx + 0x1ec], edx
js 0x1005cfa3
jg 0x1005d35b
test ecx, ecx
jne 0x1005d35b
mov esi, dword [ebp - 4]
mov dword [ebx + 0x1e4], 0
mov dword [esi], 2
jmp 0x1005d3b3
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.1007b380
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1005d35b
mov dword [ebx + 0x1e4], 0
jmp 0x1005d352
push 1
lea eax, [ebp + 0xb]
push eax
lea esi, [ebx + 0x1bc]
push esi
call fcn.100437d0
add esp, 0xc
test eax, eax
jne 0x1005d51a
cmp byte [ebp + 0xb], 0xa
jne 0x1005d35b
inc dword [ebx + 0x1e0]
push esi
call fcn.10043850
mov esi, eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043840
push eax
push esi
push 1
push edi
mov dword [ebp - 0x10], eax
call fcn.1004caf0
add esp, 0x18
cmp byte [edi + 0x70c], 0
jne 0x1005d081
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.1004cae0
add esp, 0x10
test eax, eax
jne 0x1005d628
mov eax, dword [ebp - 0x10]
cdq
add dword [edi + 0xd50], eax
adc dword [edi + 0xd54], edx
mov al, byte [esi]
cmp al, 0xd
je 0x1005d290
cmp al, 0xa
je 0x1005d290
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.10051400
add esp, 0xc
test eax, eax
je 0x1005d0c7
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x191
je 0x1005d0eb
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.10051400
add esp, 0xc
test eax, eax
je 0x1005d13f
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x197
jne 0x1005d13f
push esi
call fcn.10055920
mov esi, eax
add esp, 4
test esi, esi
je 0x1005d4b7
cmp dword [ebp - 0x10], 0x197
push esi
sete cl
movzx ecx, cl
push ecx
push edi
call fcn.10057370
push esi
mov dword [ebp - 0x10], eax
call dword [0x100dcd48]
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jne 0x1005d628
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043860
add esp, 4
jmp 0x1005d35b
push 0xf
push str.Content_Length:
push esi
call fcn.10051400
add esp, 0xc
test eax, eax
je 0x1005d192
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d27c
lea eax, [ebx + 0x1e8]
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.10060680
add esp, 0x10
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043860
add esp, 4
jmp 0x1005d35b
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.10055880
add esp, 0x14
test al, al
jne 0x1005d275
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.10051400
add esp, 0xc
test eax, eax
je 0x1005d21c
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d27c
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.10055880
add esp, 0x14
test al, al
je 0x1005d27c
push edi
mov byte [ebx + 0x1f4], 1
call fcn.1007b350
add esp, 4
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043860
add esp, 4
jmp 0x1005d35b
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.10055880
add esp, 0x14
test al, al
jne 0x1005d275
lea eax, [edi + 0xf0]
push eax
lea eax, [ebp - 0x30]
push eax
push str.HTTP_1._d__d
push esi
call fcn.10042ea0
add esp, 0x10
cmp eax, 2
jne 0x1005d27c
mov eax, dword [edi + 0xf0]
mov dword [edi + 0xd3c], eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043860
add esp, 4
jmp 0x1005d35b
mov byte [ebx + 0x1f5], 1
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043860
add esp, 4
jmp 0x1005d35b
cmp dword [edi + 0xf0], 0x197
jne 0x1005d33b
cmp byte [edi + 0xd01], 0
jne 0x1005d33b
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 0x1005d335
cmp byte [ebx + 0x1f4], al
je 0x1005d329
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.1007b380
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1005d31e
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x1e4], 0
mov dword [eax], 2
jmp 0x1005d335
mov ecx, dword [ebx + 0x1e4]
mov edx, dword [ebp - 0x10]
jmp 0x1005d335
mov dword [ebx + 0x1e4], 0
xor ecx, ecx
test ecx, ecx
jne 0x1005d35b
jmp 0x1005d34b
mov dword [ebx + 0x1e4], 0
lea edx, [ebx + 0x1e8]
mov eax, dword [edx]
or eax, dword [edx + 4]
jne 0x1005d35b
mov eax, dword [ebp - 4]
mov dword [eax], 2
cmp dword [ebx + 0x1e4], 0
jne 0x1005cf20
jmp 0x1005d3b0
cmp dword [edi + 0x16c], 0
je 0x1005d391
cmp dword [edi + 0x998], 0
je 0x1005d391
cmp dword [edi + 0xcc4], 0
je 0x1005d391
mov eax, dword [ebp - 8]
mov byte [eax + 0x264], 1
jmp 0x1005d3a6
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x1c], 1
call fcn.1004cb90
add esp, 8
mov dword [ebx + 0x1e4], 0
mov esi, dword [ebp - 4]
push edi
call fcn.1005b740
add esp, 4
test eax, eax
jne 0x1005d62f
cmp dword [ebp - 0x1c], eax
jne 0x1005d528
mov eax, dword [edi + 0xd3c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d401
push edi
call fcn.100559f0
add esp, 4
test eax, eax
jne 0x1005d628
mov eax, dword [ebp - 8]
cmp byte [eax + 0x266], 0
je 0x1005d401
mov byte [ebx + 0x1f5], 1
cmp byte [ebx + 0x1f5], 0
mov eax, dword [ebp - 0xc]
je 0x1005d41b
cmp dword [eax], 0
jne 0x1005d534
mov dword [ebp - 0x10], eax
jmp 0x1005d496
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ecx], 0
je 0x1005d496
cmp dword [esi], 2
jne 0x1005d496
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 0x2a8]
test dword [eax + 0x4c], 0x4000
je 0x1005d44f
push dword [eax]
push str._s_cannot_be_done_over_CONNECT
push edi
call fcn.1004cb90
add esp, 0xc
jmp 0x1005d493
mov esi, dword [esi + 0x4f0]
lea eax, [esi + 0x1bc]
push eax
call fcn.10043860
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 0x1005d551
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
jmp 0x1005cc30
push esi
call dword [0x100dcd48]
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.1004d050
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x1005d502
push dword [ebp + 0xc]
push dword [edi + 0x130]
push 2
push edi
call fcn.1004caf0
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.1004cb90
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.1004d5b0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [eax], 0xffffffff
jmp 0x1005d554
mov esi, dword [ebp - 8]
mov eax, dword [edi + 0xd3c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d5e1
cmp byte [ebx + 0x1f5], 0
mov eax, dword [ebp - 0xc]
je 0x1005d587
cmp dword [eax], 0
je 0x1005d587
push edi
mov byte [esi + 0x264], 1
call fcn.1005d690
add esp, 4
jmp 0x1005d5a3
push dword [eax]
call dword [0x100dcd48]
mov eax, dword [ebp - 0xc]
push 2
push esi
mov dword [eax], 0
call fcn.1004d6e0
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0
cmp byte [esi + 0x264], 0
jne 0x1005d626
lea eax, [ebx + 0x1bc]
push eax
call fcn.100437e0
push dword [edi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.1004cb90
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 [0x100dcd48]
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.100437e0
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.1004cb90
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret