Function at 0x1005ca20
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 0x1005d486
cmp dword [ebx + 0x1f0], 2
lea esi, [ebx + 0x1f0]
mov dword [ebp - 4], esi
jge 0x1005d486
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 0x1005ccda
push dword [eax]
lea esi, [ebx + 0x1cc]
call dword [0x100dcbb0]
mov eax, dword [ebp - 0x10]
push 0x100000
push esi
mov dword [eax], 0
call fcn.10043660
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 0x1005caec
push 0x3a
push esi
call fcn.1008e5e0
add esp, 8
test eax, eax
setne cl
push dword [ebp + 0x14]
test cl, cl
mov edx, 0x100ba720
mov eax, 0x100bcdc8
cmove eax, edx
push eax
mov eax, 0x100bcdcc
push esi
cmove eax, edx
push eax
push str._s_s_s:_d
call fcn.1005ed80
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x10], esi
test esi, esi
je 0x1005d317
push 4
push str.Host
push dword [ebp - 8]
push edi
call fcn.10055670
add esp, 0x10
test eax, eax
jne 0x1005cb53
push esi
push str.Host:__s_r_n
call fcn.1005ed80
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005d30d
push 1
push esi
push 0
push str.CONNECT
push dword [ebp - 8]
push edi
call fcn.10057560
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005ccab
mov eax, dword [ebp - 8]
mov edx, 0x100bd9d0
mov esi, 0x100ba720
mov ecx, esi
cmp dword [eax + 0xb8], 1
mov eax, 0x100bd9cc
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.10043600
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005cc9d
push 0xa
push str.User_Agent
push dword [ebp - 8]
push edi
call fcn.10055670
add esp, 0x10
test eax, eax
jne 0x1005cc0a
mov eax, dword [edi + 0x5a8]
test eax, eax
je 0x1005cc0a
push eax
lea eax, [ebx + 0x1cc]
push str.User_Agent:__s_r_n
push eax
call fcn.10043600
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005cc9d
push 0x10
push str.Proxy_Connection
push dword [ebp - 8]
push edi
call fcn.10055670
add esp, 0x10
test eax, eax
jne 0x1005cc3d
push 0x1e
lea eax, [ebx + 0x1cc]
push str.Proxy_Connection:_Keep_Alive_r_n
push eax
call fcn.10043620
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005cc9d
lea eax, [ebx + 0x1cc]
push eax
push 1
push edi
call fcn.10054f50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005cc9d
push 2
lea eax, [ebx + 0x1cc]
push 0x100bc858
push eax
call fcn.10043620
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005cc9d
push dword [ebp + 0xc]
push eax
push eax
lea eax, [edi + 0xd58]
push eax
lea eax, [ebx + 0x1cc]
push edi
push eax
call fcn.100553f0
mov esi, eax
mov dword [ebx + 0x1e0], 0
add esp, 0x18
test esi, esi
je 0x1005ccab
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.1004c9f0
add esp, 8
push dword [ebp - 0x14]
call dword [0x100dcbb0]
push dword [ebp - 0x10]
call dword [0x100dcbb0]
add esp, 8
test esi, esi
jne 0x1005d323
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.1004e1e0
add esp, 0xc
test edx, edx
jl 0x1005d49b
jg 0x1005ccf9
test eax, eax
je 0x1005d49b
push dword [ebp + 0xc]
mov esi, dword [ebp - 8]
push esi
call fcn.1004d490
mov ecx, dword [ebp - 0x14]
add esp, 8
test al, al
jne 0x1005cd18
cmp dword [ecx], 0
je 0x1005d486
cmp dword [ecx], 1
jne 0x1005cd68
mov eax, dword [ebx + 0x1dc]
test eax, eax
jne 0x1005d32c
mov eax, dword [edi + 0x8e0]
mov dword [edi + 0x130], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x4cc]
push edi
call fcn.10059120
add esp, 0xc
test eax, eax
jne 0x1005d488
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x1dc], eax
test eax, eax
jne 0x1005d32c
mov dword [ecx], eax
cmp dword [ebx + 0x1e4], 0
mov dword [ebp - 0x1c], 0
je 0x1005d210
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.1004cab0
mov esi, eax
add esp, 0x14
cmp esi, 0x51
je 0x1005d486
push edi
call fcn.1005b5a0
add esp, 4
test eax, eax
jne 0x1005d48f
test esi, esi
jne 0x1005d206
cmp dword [ebp - 0x18], esi
jle 0x1005d1ca
cmp dword [ebx + 0x1e4], 2
jne 0x1005ce51
mov ecx, dword [ebx + 0x1e8]
mov eax, ecx
mov edx, dword [ebx + 0x1ec]
or eax, edx
je 0x1005ce1b
sub ecx, 1
mov dword [ebx + 0x1e8], ecx
sbb edx, esi
mov dword [ebx + 0x1ec], edx
js 0x1005ce03
jg 0x1005d1bb
test ecx, ecx
jne 0x1005d1bb
mov esi, dword [ebp - 4]
mov dword [ebx + 0x1e4], 0
mov dword [esi], 2
jmp 0x1005d213
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.1007b1f0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1005d1bb
mov dword [ebx + 0x1e4], 0
jmp 0x1005d1b2
push 1
lea eax, [ebp + 0xb]
push eax
lea esi, [ebx + 0x1bc]
push esi
call fcn.10043620
add esp, 0xc
test eax, eax
jne 0x1005d37a
cmp byte [ebp + 0xb], 0xa
jne 0x1005d1bb
inc dword [ebx + 0x1e0]
push esi
call fcn.100436a0
mov esi, eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043690
push eax
push esi
push 1
push edi
mov dword [ebp - 0x10], eax
call fcn.1004c950
add esp, 0x18
cmp byte [edi + 0x70c], 0
jne 0x1005cee1
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.1004c940
add esp, 0x10
test eax, eax
jne 0x1005d488
mov eax, dword [ebp - 0x10]
cdq
add dword [edi + 0xd50], eax
adc dword [edi + 0xd54], edx
mov al, byte [esi]
cmp al, 0xd
je 0x1005d0f0
cmp al, 0xa
je 0x1005d0f0
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.10051260
add esp, 0xc
test eax, eax
je 0x1005cf27
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x191
je 0x1005cf4b
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.10051260
add esp, 0xc
test eax, eax
je 0x1005cf9f
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x197
jne 0x1005cf9f
push esi
call fcn.10055780
mov esi, eax
add esp, 4
test esi, esi
je 0x1005d317
cmp dword [ebp - 0x10], 0x197
push esi
sete cl
movzx ecx, cl
push ecx
push edi
call fcn.100571d0
push esi
mov dword [ebp - 0x10], eax
call dword [0x100dcbb0]
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jne 0x1005d488
lea eax, [ebx + 0x1bc]
push eax
call fcn.100436b0
add esp, 4
jmp 0x1005d1bb
push 0xf
push str.Content_Length:
push esi
call fcn.10051260
add esp, 0xc
test eax, eax
je 0x1005cff2
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d0dc
lea eax, [ebx + 0x1e8]
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.100604e0
add esp, 0x10
lea eax, [ebx + 0x1bc]
push eax
call fcn.100436b0
add esp, 4
jmp 0x1005d1bb
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.100556e0
add esp, 0x14
test al, al
jne 0x1005d0d5
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.10051260
add esp, 0xc
test eax, eax
je 0x1005d07c
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d0dc
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.100556e0
add esp, 0x14
test al, al
je 0x1005d0dc
push edi
mov byte [ebx + 0x1f4], 1
call fcn.1007b1c0
add esp, 4
lea eax, [ebx + 0x1bc]
push eax
call fcn.100436b0
add esp, 4
jmp 0x1005d1bb
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.100556e0
add esp, 0x14
test al, al
jne 0x1005d0d5
lea eax, [edi + 0xf0]
push eax
lea eax, [ebp - 0x30]
push eax
push str.HTTP_1._d__d
push esi
call fcn.10042cf0
add esp, 0x10
cmp eax, 2
jne 0x1005d0dc
mov eax, dword [edi + 0xf0]
mov dword [edi + 0xd3c], eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.100436b0
add esp, 4
jmp 0x1005d1bb
mov byte [ebx + 0x1f5], 1
lea eax, [ebx + 0x1bc]
push eax
call fcn.100436b0
add esp, 4
jmp 0x1005d1bb
cmp dword [edi + 0xf0], 0x197
jne 0x1005d19b
cmp byte [edi + 0xd01], 0
jne 0x1005d19b
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 0x1005d195
cmp byte [ebx + 0x1f4], al
je 0x1005d189
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.1007b1f0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1005d17e
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x1e4], 0
mov dword [eax], 2
jmp 0x1005d195
mov ecx, dword [ebx + 0x1e4]
mov edx, dword [ebp - 0x10]
jmp 0x1005d195
mov dword [ebx + 0x1e4], 0
xor ecx, ecx
test ecx, ecx
jne 0x1005d1bb
jmp 0x1005d1ab
mov dword [ebx + 0x1e4], 0
lea edx, [ebx + 0x1e8]
mov eax, dword [edx]
or eax, dword [edx + 4]
jne 0x1005d1bb
mov eax, dword [ebp - 4]
mov dword [eax], 2
cmp dword [ebx + 0x1e4], 0
jne 0x1005cd80
jmp 0x1005d210
cmp dword [edi + 0x16c], 0
je 0x1005d1f1
cmp dword [edi + 0x998], 0
je 0x1005d1f1
cmp dword [edi + 0xcc4], 0
je 0x1005d1f1
mov eax, dword [ebp - 8]
mov byte [eax + 0x264], 1
jmp 0x1005d206
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x1c], 1
call fcn.1004c9f0
add esp, 8
mov dword [ebx + 0x1e4], 0
mov esi, dword [ebp - 4]
push edi
call fcn.1005b5a0
add esp, 4
test eax, eax
jne 0x1005d48f
cmp dword [ebp - 0x1c], eax
jne 0x1005d388
mov eax, dword [edi + 0xd3c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d261
push edi
call fcn.10055850
add esp, 4
test eax, eax
jne 0x1005d488
mov eax, dword [ebp - 8]
cmp byte [eax + 0x266], 0
je 0x1005d261
mov byte [ebx + 0x1f5], 1
cmp byte [ebx + 0x1f5], 0
mov eax, dword [ebp - 0xc]
je 0x1005d27b
cmp dword [eax], 0
jne 0x1005d394
mov dword [ebp - 0x10], eax
jmp 0x1005d2f6
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ecx], 0
je 0x1005d2f6
cmp dword [esi], 2
jne 0x1005d2f6
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 0x2a8]
test dword [eax + 0x4c], 0x4000
je 0x1005d2af
push dword [eax]
push str._s_cannot_be_done_over_CONNECT
push edi
call fcn.1004c9f0
add esp, 0xc
jmp 0x1005d2f3
mov esi, dword [esi + 0x4f0]
lea eax, [esi + 0x1bc]
push eax
call fcn.100436b0
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 0x1005d3b1
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
jmp 0x1005ca90
push esi
call dword [0x100dcbb0]
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.1004ceb0
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x1005d362
push dword [ebp + 0xc]
push dword [edi + 0x130]
push 2
push edi
call fcn.1004c950
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.1004c9f0
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.1004d410
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [eax], 0xffffffff
jmp 0x1005d3b4
mov esi, dword [ebp - 8]
mov eax, dword [edi + 0xd3c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d441
cmp byte [ebx + 0x1f5], 0
mov eax, dword [ebp - 0xc]
je 0x1005d3e7
cmp dword [eax], 0
je 0x1005d3e7
push edi
mov byte [esi + 0x264], 1
call fcn.1005d4f0
add esp, 4
jmp 0x1005d403
push dword [eax]
call dword [0x100dcbb0]
mov eax, dword [ebp - 0xc]
push 2
push esi
mov dword [eax], 0
call fcn.1004d540
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0
cmp byte [esi + 0x264], 0
jne 0x1005d486
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043630
push dword [edi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.1004c9f0
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 [0x100dcbb0]
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.10043630
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.1004c9f0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret