Function at 0x1005cba0
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 0x1005d606
cmp dword [ebx + 0x1f0], 2
lea esi, [ebx + 0x1f0]
mov dword [ebp - 4], esi
jge 0x1005d606
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 0x1005ce5a
push dword [eax]
lea esi, [ebx + 0x1cc]
call dword [0x100dcd78]
mov eax, dword [ebp - 0x10]
push 0x100000
push esi
mov dword [eax], 0
call fcn.10043800
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 0x1005cc6c
push 0x3a
push esi
call fcn.1008e750
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.1005ef00
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x10], esi
test esi, esi
je 0x1005d497
push 4
push str.Host
push dword [ebp - 8]
push edi
call fcn.100557f0
add esp, 0x10
test eax, eax
jne 0x1005ccd3
push esi
push str.Host:__s_r_n
call fcn.1005ef00
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005d48d
push 1
push esi
push 0
push str.CONNECT
push dword [ebp - 8]
push edi
call fcn.100576e0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005ce2b
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.100437a0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x1005ce1d
push 0xa
push str.User_Agent
push dword [ebp - 8]
push edi
call fcn.100557f0
add esp, 0x10
test eax, eax
jne 0x1005cd8a
mov eax, dword [edi + 0x5a8]
test eax, eax
je 0x1005cd8a
push eax
lea eax, [ebx + 0x1cc]
push str.User_Agent:__s_r_n
push eax
call fcn.100437a0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ce1d
push 0x10
push str.Proxy_Connection
push dword [ebp - 8]
push edi
call fcn.100557f0
add esp, 0x10
test eax, eax
jne 0x1005cdbd
push 0x1e
lea eax, [ebx + 0x1cc]
push str.Proxy_Connection:_Keep_Alive_r_n
push eax
call fcn.100437c0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ce1d
lea eax, [ebx + 0x1cc]
push eax
push 1
push edi
call fcn.100550d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ce1d
push 2
lea eax, [ebx + 0x1cc]
push 0x100bc858
push eax
call fcn.100437c0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ce1d
push dword [ebp + 0xc]
push eax
push eax
lea eax, [edi + 0xd58]
push eax
lea eax, [ebx + 0x1cc]
push edi
push eax
call fcn.10055570
mov esi, eax
mov dword [ebx + 0x1e0], 0
add esp, 0x18
test esi, esi
je 0x1005ce2b
push str.Failed_sending_CONNECT_to_proxy
push edi
call fcn.1004cb70
add esp, 8
push dword [ebp - 0x14]
call dword [0x100dcd78]
push dword [ebp - 0x10]
call dword [0x100dcd78]
add esp, 8
test esi, esi
jne 0x1005d4a3
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.1004e360
add esp, 0xc
test edx, edx
jl 0x1005d61b
jg 0x1005ce79
test eax, eax
je 0x1005d61b
push dword [ebp + 0xc]
mov esi, dword [ebp - 8]
push esi
call fcn.1004d610
mov ecx, dword [ebp - 0x14]
add esp, 8
test al, al
jne 0x1005ce98
cmp dword [ecx], 0
je 0x1005d606
cmp dword [ecx], 1
jne 0x1005cee8
mov eax, dword [ebx + 0x1dc]
test eax, eax
jne 0x1005d4ac
mov eax, dword [edi + 0x8e0]
mov dword [edi + 0x130], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x4cc]
push edi
call fcn.100592a0
add esp, 0xc
test eax, eax
jne 0x1005d608
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x1dc], eax
test eax, eax
jne 0x1005d4ac
mov dword [ecx], eax
cmp dword [ebx + 0x1e4], 0
mov dword [ebp - 0x1c], 0
je 0x1005d390
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.1004cc30
mov esi, eax
add esp, 0x14
cmp esi, 0x51
je 0x1005d606
push edi
call fcn.1005b720
add esp, 4
test eax, eax
jne 0x1005d60f
test esi, esi
jne 0x1005d386
cmp dword [ebp - 0x18], esi
jle 0x1005d34a
cmp dword [ebx + 0x1e4], 2
jne 0x1005cfd1
mov ecx, dword [ebx + 0x1e8]
mov eax, ecx
mov edx, dword [ebx + 0x1ec]
or eax, edx
je 0x1005cf9b
sub ecx, 1
mov dword [ebx + 0x1e8], ecx
sbb edx, esi
mov dword [ebx + 0x1ec], edx
js 0x1005cf83
jg 0x1005d33b
test ecx, ecx
jne 0x1005d33b
mov esi, dword [ebp - 4]
mov dword [ebx + 0x1e4], 0
mov dword [esi], 2
jmp 0x1005d393
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.1007b350
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1005d33b
mov dword [ebx + 0x1e4], 0
jmp 0x1005d332
push 1
lea eax, [ebp + 0xb]
push eax
lea esi, [ebx + 0x1bc]
push esi
call fcn.100437c0
add esp, 0xc
test eax, eax
jne 0x1005d4fa
cmp byte [ebp + 0xb], 0xa
jne 0x1005d33b
inc dword [ebx + 0x1e0]
push esi
call fcn.10043840
mov esi, eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043830
push eax
push esi
push 1
push edi
mov dword [ebp - 0x10], eax
call fcn.1004cad0
add esp, 0x18
cmp byte [edi + 0x70c], 0
jne 0x1005d061
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.1004cac0
add esp, 0x10
test eax, eax
jne 0x1005d608
mov eax, dword [ebp - 0x10]
cdq
add dword [edi + 0xd50], eax
adc dword [edi + 0xd54], edx
mov al, byte [esi]
cmp al, 0xd
je 0x1005d270
cmp al, 0xa
je 0x1005d270
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.100513e0
add esp, 0xc
test eax, eax
je 0x1005d0a7
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x191
je 0x1005d0cb
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.100513e0
add esp, 0xc
test eax, eax
je 0x1005d11f
mov eax, dword [edi + 0xf0]
mov dword [ebp - 0x10], eax
cmp eax, 0x197
jne 0x1005d11f
push esi
call fcn.10055900
mov esi, eax
add esp, 4
test esi, esi
je 0x1005d497
cmp dword [ebp - 0x10], 0x197
push esi
sete cl
movzx ecx, cl
push ecx
push edi
call fcn.10057350
push esi
mov dword [ebp - 0x10], eax
call dword [0x100dcd78]
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jne 0x1005d608
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043850
add esp, 4
jmp 0x1005d33b
push 0xf
push str.Content_Length:
push esi
call fcn.100513e0
add esp, 0xc
test eax, eax
je 0x1005d172
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d25c
lea eax, [ebx + 0x1e8]
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.10060660
add esp, 0x10
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043850
add esp, 4
jmp 0x1005d33b
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.10055860
add esp, 0x14
test al, al
jne 0x1005d255
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.100513e0
add esp, 0xc
test eax, eax
je 0x1005d1fc
mov eax, dword [edi + 0xf0]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d25c
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.10055860
add esp, 0x14
test al, al
je 0x1005d25c
push edi
mov byte [ebx + 0x1f4], 1
call fcn.1007b320
add esp, 4
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043850
add esp, 4
jmp 0x1005d33b
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.10055860
add esp, 0x14
test al, al
jne 0x1005d255
lea eax, [edi + 0xf0]
push eax
lea eax, [ebp - 0x30]
push eax
push str.HTTP_1._d__d
push esi
call fcn.10042e90
add esp, 0x10
cmp eax, 2
jne 0x1005d25c
mov eax, dword [edi + 0xf0]
mov dword [edi + 0xd3c], eax
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043850
add esp, 4
jmp 0x1005d33b
mov byte [ebx + 0x1f5], 1
lea eax, [ebx + 0x1bc]
push eax
call fcn.10043850
add esp, 4
jmp 0x1005d33b
cmp dword [edi + 0xf0], 0x197
jne 0x1005d31b
cmp byte [edi + 0xd01], 0
jne 0x1005d31b
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 0x1005d315
cmp byte [ebx + 0x1f4], al
je 0x1005d309
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.1007b350
add esp, 0x14
cmp eax, 0xffffffff
jne 0x1005d2fe
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x1e4], 0
mov dword [eax], 2
jmp 0x1005d315
mov ecx, dword [ebx + 0x1e4]
mov edx, dword [ebp - 0x10]
jmp 0x1005d315
mov dword [ebx + 0x1e4], 0
xor ecx, ecx
test ecx, ecx
jne 0x1005d33b
jmp 0x1005d32b
mov dword [ebx + 0x1e4], 0
lea edx, [ebx + 0x1e8]
mov eax, dword [edx]
or eax, dword [edx + 4]
jne 0x1005d33b
mov eax, dword [ebp - 4]
mov dword [eax], 2
cmp dword [ebx + 0x1e4], 0
jne 0x1005cf00
jmp 0x1005d390
cmp dword [edi + 0x16c], 0
je 0x1005d371
cmp dword [edi + 0x998], 0
je 0x1005d371
cmp dword [edi + 0xcc4], 0
je 0x1005d371
mov eax, dword [ebp - 8]
mov byte [eax + 0x264], 1
jmp 0x1005d386
push str.Proxy_CONNECT_aborted
push edi
mov dword [ebp - 0x1c], 1
call fcn.1004cb70
add esp, 8
mov dword [ebx + 0x1e4], 0
mov esi, dword [ebp - 4]
push edi
call fcn.1005b720
add esp, 4
test eax, eax
jne 0x1005d60f
cmp dword [ebp - 0x1c], eax
jne 0x1005d508
mov eax, dword [edi + 0xd3c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d3e1
push edi
call fcn.100559d0
add esp, 4
test eax, eax
jne 0x1005d608
mov eax, dword [ebp - 8]
cmp byte [eax + 0x266], 0
je 0x1005d3e1
mov byte [ebx + 0x1f5], 1
cmp byte [ebx + 0x1f5], 0
mov eax, dword [ebp - 0xc]
je 0x1005d3fb
cmp dword [eax], 0
jne 0x1005d514
mov dword [ebp - 0x10], eax
jmp 0x1005d476
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ecx], 0
je 0x1005d476
cmp dword [esi], 2
jne 0x1005d476
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 0x2a8]
test dword [eax + 0x4c], 0x4000
je 0x1005d42f
push dword [eax]
push str._s_cannot_be_done_over_CONNECT
push edi
call fcn.1004cb70
add esp, 0xc
jmp 0x1005d473
mov esi, dword [esi + 0x4f0]
lea eax, [esi + 0x1bc]
push eax
call fcn.10043850
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 0x1005d531
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
jmp 0x1005cc10
push esi
call dword [0x100dcd78]
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.1004d030
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x1005d4e2
push dword [ebp + 0xc]
push dword [edi + 0x130]
push 2
push edi
call fcn.1004cad0
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.1004cb70
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.1004d590
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [eax], 0xffffffff
jmp 0x1005d534
mov esi, dword [ebp - 8]
mov eax, dword [edi + 0xd3c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1005d5c1
cmp byte [ebx + 0x1f5], 0
mov eax, dword [ebp - 0xc]
je 0x1005d567
cmp dword [eax], 0
je 0x1005d567
push edi
mov byte [esi + 0x264], 1
call fcn.1005d670
add esp, 4
jmp 0x1005d583
push dword [eax]
call dword [0x100dcd78]
mov eax, dword [ebp - 0xc]
push 2
push esi
mov dword [eax], 0
call fcn.1004d6c0
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 0
cmp byte [esi + 0x264], 0
jne 0x1005d606
lea eax, [ebx + 0x1bc]
push eax
call fcn.100437d0
push dword [edi + 0xf0]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push edi
call fcn.1004cb70
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 [0x100dcd78]
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.100437d0
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.1004cb70
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret