Function at 0x1005c790
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x141], 0
jne 0x1005c85c
cmp byte [esi + 0x6b8], 0
jne 0x1005c85c
push 0xf
mov edx, 0x100881c4
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005c85c
lea eax, [ebp - 0x14]
xor edx, edx
push eax
push 0xa
lea ecx, [edi + 0xf]
call fcn.10061b00
add esp, 8
test eax, eax
jne 0x1005c811
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x84], eax
mov dword [esi + 0x8c], eax
xor eax, eax
mov dword [esi + 0x80], ecx
mov dword [esi + 0x88], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1005c842
mov eax, dword [esi + 0x4d8]
or eax, dword [esi + 0x4dc]
je 0x1005c97c
push str.Maximum_file_size_exceeded
push esi
call fcn.10044190
add esp, 8
mov eax, 0x3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_Content_Length:_value
push esi
call fcn.10044190
add esp, 8
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xd
mov edx, 0x10088178
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005c8b8
mov ecx, edi
call fcn.10060a10
mov edi, eax
test edi, edi
je 0x1005ce7c
cmp byte [edi], 0
jne 0x1005c89a
push edi
call dword [0x100849b8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0xcec]
call dword [0x100849b8]
add esp, 4
mov dword [esi + 0xcec], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x114], 0xa
jne 0x1005c8e6
cmp byte [ebx + 0x258], 0
je 0x1005c8e6
push 0xa
push str.keep_alive
push 0x11
mov edx, str.Proxy_Connection:
mov ecx, edi
call fcn.10060d90
add esp, 0xc
test al, al
jne 0x1005c94e
cmp byte [ebx + 0x114], 0xb
jne 0x1005c929
cmp byte [ebx + 0x258], 0
je 0x1005c929
push 5
push str.close
push 0x11
mov edx, 0x1008813c
mov ecx, edi
call fcn.10060d90
add esp, 0xc
test al, al
je 0x1005c929
mov edx, 1
mov ecx, ebx
call fcn.10045b40
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x114], 0xa
jne 0x1005c960
push 0xa
push 0x10088130
push 0xb
mov edx, 0x10088124
mov ecx, edi
call fcn.10060d90
add esp, 0xc
test al, al
je 0x1005c960
xor edx, edx
mov ecx, ebx
call fcn.10045b40
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 5
push 0x1008811c
push 0xb
mov edx, 0x10088110
mov ecx, edi
call fcn.10060d90
add esp, 0xc
test al, al
je 0x1005c991
mov edx, 2
mov ecx, ebx
call fcn.10045b40
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x141]
mov byte [ebp - 5], al
test al, al
jne 0x1005ca30
push 0x12
mov edx, 0x100880fc
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005c9f4
push 1
lea edx, [edi + 0x12]
mov ecx, esi
call fcn.1004f580
add esp, 4
test eax, eax
jne 0x1005c893
cmp byte [esi + 0x142], al
jne 0x1005c891
lea edx, [eax + 1]
mov ecx, ebx
call fcn.10045b40
mov byte [esi + 0x143], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x11
mov edx, str.Content_Encoding:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005ca30
cmp dword [esi + 0x524], 0
je 0x1005ca30
push 0
lea edx, [edi + 0x11]
mov ecx, esi
call fcn.1004f580
add esp, 4
test eax, eax
je 0x1005c891
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xc
mov edx, str.Retry_After:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005cab3
lea eax, [edi + 0xc]
xorps xmm0, xmm0
mov ecx, eax
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0xc], eax
call fcn.10062400
mov ebx, eax
mov edi, edx
cmp ebx, 0xffffffff
jne 0x1005ca95
cmp edi, eax
jne 0x1005ca95
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push 0xa
xor edx, edx
call fcn.10061b00
mov edi, dword [ebp - 0x10]
add esp, 8
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov dword [esi + 0xcf8], ebx
mov dword [esi + 0xcfc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1005f6b0
sub ebx, eax
mov dword [esi + 0xcf8], ebx
sbb edi, edx
xor eax, eax
mov dword [esi + 0xcfc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 5], 0
jne 0x1005cb72
push 0xe
mov edx, str.Content_Range:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005cb72
mov dl, byte [edi + 0xe]
add edi, 0xe
test dl, dl
je 0x1005caff
mov bl, dl
movzx ecx, bl
mov dl, bl
call fcn.10062e40
test eax, eax
jne 0x1005caff
cmp bl, 0x2a
je 0x1005caff
mov dl, byte [edi + 1]
inc edi
mov bl, dl
test dl, dl
jne 0x1005cae2
movzx ecx, dl
call fcn.10062e40
test eax, eax
je 0x1005cb55
lea ebx, [esi + 0xe8]
xor edx, edx
push ebx
push 0xa
mov ecx, edi
call fcn.10061b00
add esp, 8
test eax, eax
jne 0x1005c891
mov eax, dword [esi + 0xbd8]
cmp eax, dword [ebx]
jne 0x1005c891
mov eax, dword [esi + 0xbdc]
cmp eax, dword [ebx + 4]
jne 0x1005c891
mov byte [esi + 0x13e], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0xbd8], 0
xor eax, eax
mov dword [esi + 0xbdc], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x6d0], 0
je 0x1005cc8d
cmp byte [esi + 0xcb2], 0
je 0x1005cc8d
push 0xb
mov edx, str.Set_Cookie:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005cc8d
mov ecx, dword [esi + 0xc88]
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x1005cbb8
mov ecx, dword [ebx + 0x60]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x44], 2
jne 0x1005cc3f
mov edx, ecx
mov ecx, 0x100880b0
call fcn.1004fb80
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x1005cc42
mov ecx, 0x100880a4
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005cc00
test dl, dl
je 0x1005cbfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005cc00
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005cbe0
xor eax, eax
jmp 0x1005cc05
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005cc42
mov ecx, 0x1008809c
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1005cc30
test dl, dl
je 0x1005cc2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1005cc30
add eax, 2
add ecx, 2
test dl, dl
jne 0x1005cc10
xor eax, eax
jmp 0x1005cc35
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005cc42
mov byte [ebp - 0xc], 0
jmp 0x1005cc46
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0xc], 1
push ecx
mov edx, 2
mov ecx, esi
call fcn.1004f500
mov edx, dword [esi + 0x6d0]
lea eax, [edi + 0xb]
add esp, 4
mov ecx, esi
push dword [ebp - 0xc]
push dword [esi + 0xc0c]
push ebx
push eax
push 0
push 1
call fcn.10046c00
add esp, 0x18
mov edx, 2
mov ecx, esi
call fcn.1004f540
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 5], 0
jne 0x1005ccf2
push 0xe
mov edx, str.Last_Modified:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005ccf2
cmp dword [esi + 0x3d0], 0
jne 0x1005ccba
cmp byte [esi + 0x6a2], 0
je 0x1005ccf2
lea ecx, [edi + 0xe]
call fcn.10062400
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], edx
cmp byte [esi + 0x6a2], 0
je 0x1005c891
mov ecx, edx
mov dword [esi + 0xcc8], eax
mov dword [esi + 0xccc], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x11
mov edx, str.WWW_Authenticate:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005cd17
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0xc], eax
cmp eax, 0x191
je 0x1005cd3c
push 0x13
mov edx, str.Proxy_authenticate:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005cd7f
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0xc], eax
cmp eax, 0x197
jne 0x1005cd7f
mov ecx, edi
call fcn.10060a10
mov edi, eax
test edi, edi
je 0x1005ce7c
cmp dword [ebp - 0xc], 0x197
mov ecx, esi
push edi
sete dl
call fcn.10060650
add esp, 4
mov esi, eax
push edi
call dword [0x100849b8]
add esp, 4
test esi, esi
je 0x1005c891
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
mov edx, str.Persistent_Auth:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005cde8
cmp dword [esi + 0x93c], 4
jne 0x1005c891
mov ecx, edi
call fcn.10060a10
mov esi, eax
test esi, esi
je 0x1005ce7c
push 5
mov edx, str.false
mov ecx, esi
call fcn.1004fbd0
add esp, 4
mov byte [ebx + 0x3e1], 1
test eax, eax
setne al
push esi
mov byte [ebx + 0x3e0], al
call dword [0x100849b8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xf0]
sub eax, 0x12c
cmp eax, 0x63
ja 0x1005ce88
push 9
mov edx, str.Location:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005ce88
cmp dword [esi + 0x124], 0
jne 0x1005ce88
mov ecx, edi
call fcn.10060a10
test eax, eax
je 0x1005ce7c
cmp byte [eax], 0
jne 0x1005ce3d
push eax
call dword [0x100849b8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x6aa], 0
mov dword [esi + 0x124], eax
je 0x1005c891
push eax
call dword [0x100849bc]
add esp, 4
mov dword [esi + 0x128], eax
test eax, eax
je 0x1005ce7c
mov edx, ebx
mov ecx, esi
call fcn.1005f240
test eax, eax
je 0x1005c891
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
cmp dword [esi + 0x6d4], 0
je 0x1005ced3
push 0x1a
mov edx, str.Strict_Transport_Security:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005ced3
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x4c], 1
je 0x1005ced3
mov edx, dword [esi + 0xbf8]
lea eax, [edi + 0x1a]
mov ecx, dword [esi + 0x6d4]
push eax
call fcn.1004c620
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0x6d8]
test esi, esi
je 0x1005cf41
push 8
mov edx, str.Alt_Svc:
mov ecx, edi
call fcn.1004fbd0
add esp, 4
test eax, eax
je 0x1005cf41
mov eax, dword [ebx + 0x2a0]
test byte [eax + 0x4c], 1
je 0x1005cf41
mov ecx, dword [ebx + 0xc4]
xor edx, edx
cmp byte [ebx + 0x114], 0x14
sete dl
lea edx, [edx*8 + 8]
call fcn.10044260
movzx eax, ax
push eax
push dword [ebx + 0x60]
lea eax, [edi + 8]
push edx
push eax
mov edx, esi
call fcn.1004e020
add esp, 0x10
test eax, eax
je 0x1005c891
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x2a0]
test dword [eax + 0x44], 0x40000
je 0x1005c891
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret